Twilio SendGrid's Teammates feature allows multiple users, or "Teammates," to work from a single SendGrid account.
Teammates enables groups of users with different roles and responsibilities to share one account, where each of these users has access to varying SendGrid features depending on their needs. By only giving your individual team members access to the features that they need to do their jobs, you can limit access to sensitive areas of your account. Teammates allows you to add, remove, and manage different users. See the Teammate Permissions documentation for more information about managing user permissions.
Free and Essentials plans allow for adding one Teammate per account and do not offer Single Sign-On (SSO), while Pro and higher plans allow for up to 1,000 Teammates and include SSO and other features. Learn more about the different Email API Plans on our pricing page.
You can think of Subusers like subaccounts. Each Subuser account is its own email ecosystem with isolated contacts, templates, suppressions, and data. Subusers feed off their parent account email credits, and all billing rolls up to the parent account. Teammates may have access to a parent account, a group of Subusers, or a single Subuser account only.
This operation allows you to retrieve the Subusers that can be accessed by a specified Teammate.
This operation will return the Subusers available to a Teammate, including the scopes available. If the Teammate is an administrator, all Subusers will be returned.
Bearer <<YOUR_API_KEY_HERE>>
The username of the Teammate for whom you want to retrieve Subuser access information.
The Subuser ID from which the API request will begin retrieving Subusers. This query parameter can be used in successive API calls to retrieve additional Subusers.
Limit the number of Subusers to be returned. The default limit
is 100
per request.
100
A Subuser's username that will be used to filter the returned result.
200 Success
When this property is set to true
, the Teammate has permissions to operate only on behalf of a Subuser. This property value is true
when the subuser_access
property is not empty. The subuser_access
property determines which Subusers the Teammate may act on behalf of.
Specifies which Subusers the Teammate may access and act on behalf of. If this property is populated, the has_restricted_subuser_access
property will be true
.
This object contains response metadata. The presence of the after_subuser_id
property in the metadata indicates that some items are still outstanding and have not been retrieved. You can use the after_subuser_id
value to retrieve additional items with another request.
1const client = require('@sendgrid/client');2client.setApiKey(process.env.SENDGRID_API_KEY);34const teammate_name = "Miss Christine Morgan";5const queryParams = {6"limit": 1007};89const request = {10url: `/v3/teammates/${teammate_name}/subuser_access`,11method: 'GET',12qs: queryParams13}1415client.request(request)16.then(([response, body]) => {17console.log(response.statusCode);18console.log(response.body);19})20.catch(error => {21console.error(error);22});