List team members
GET/v2/orgs/:org_id/teams/:team_id/members
Retrieves team members by cursor.
Required scope
organizations:teams:readRate limiting
Level 2Enterprise only
This API is available only for Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin. You can request temporary access to Enterprise APIs using this form.
Request
Path Parameters
The id of the Organization.
The id of the Team.
Query Parameters
- "member": Team member with full member permissions.
- "admin": Admin of a team. Team member with permission to manage team.
- "non_team": External user, non-team user.
- "team_guest": Team-guest user, user with access only to a team without access to organization.
Possible values: >= 1
and <= 100
Default value: 100
An indicator of the position of a page in the full set of results. To obtain the first page leave it empty. To obtain subsequent pages set it to the value returned in the cursor field of the previous request.
Role query. Filters members by role using full word match. Accepted values are:
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Page of team members that match the search query.
- application/json
- Schema
- Example (from schema)
Schema
Array [
- "member": Team member with full member permissions.
- "admin": Admin of a team. Team member with permission to manage team.
- "non_team": External user, non-team user.
- "team_guest": Team-guest user, user with access only to a team without access to organization.
]
Possible values: >= 1
and <= 100
Default value: 100
The maximum number of results to return per call. If the number of project in the response is greater than the limit specified, the response returns the cursor parameter with a value.
Possible values: <= 100
Default value: 100
Number of results returned in the response considering the cursor and the limit values sent in the request. For example, if there are 20 results, the request does not have a cursor value, and the limit set to 10, the size of the results will be 10. In this example, the response will also return a cursor value that can be used to retrieve the next set of 10 remaining results in the collection.
data
object[]
required
List of team members
Team member id.
Possible values: [non_team
, member
, admin
, team_guest
]
Role of the team member.
Date and time when member was invited to the team.
Id of the user who invited the team member.
Date and time when the user's membership was last updated.
Id of the user who last updated the user's membership.
Team id
Default value: team-member
Type of the object returned.
Indicator of the position of the next page of the result. To retrieve the next page, make another query setting its cursor field to the value returned by the current query. If the value is empty, there are no more pages to fetch.
Default value: cursor-list
Type of the object returned.
{
"limit": 100,
"size": 87,
"data": [
{
"id": "3074457345618264000",
"role": "non_team",
"createdAt": "2024-04-11T15:04:04.387Z",
"createdBy": "3074457345618264000",
"modifiedAt": "2024-04-11T15:04:04.387Z",
"modifiedBy": "3074457345618264000",
"teamId": "3074457345618265000",
"type": "team-member"
}
],
"cursor": "3074457345821140946",
"type": "cursor-list"
}
Malformed request
- application/json
- Schema
- Example (from schema)
Schema
Default value: 400
HTTP status code.
Default value: invalidParameters
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 400,
"code": "invalidParameters",
"message": "string",
"type": "error"
}
Invalid authentication credentials
- application/json
- Schema
- Example (from schema)
Schema
Default value: 401
HTTP status code.
Default value: tokenNotProvided
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 401,
"code": "tokenNotProvided",
"message": "string",
"type": "error"
}
Invalid access
- application/json
- Schema
- Example (from schema)
Schema
Default value: 403
HTTP status code.
Default value: forbiddenAccess
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 403,
"code": "forbiddenAccess",
"message": "string",
"type": "error"
}
Invalid access
- application/json
- Schema
- Example (from schema)
Schema
Default value: 404
HTTP status code.
Default value: notFound
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 404,
"code": "notFound",
"message": "string",
"type": "error"
}
Too many requests
- application/json
- Schema
- Example (from schema)
Schema
Default value: 429
HTTP status code.
Default value: tooManyRequests
Description of the status code.
Explanation for the error
Default value: error
Type of the object returned.
{
"status": 429,
"code": "tooManyRequests",
"message": "string",
"type": "error"
}