Gets a list of members assigned to a platform role in the authenticated org.
Required permission
Organisation > Admin > Roles > Read
Path parameters
roleId
string requiredID of the org role
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.min1max100page
integerThe page number to access.min1cursor
stringThe cursor returned from the previous page of results, used to request the next page.min length24max length24type
stringFilter members by how they were added, directly or implicitly via directory group membership.one ofexplicit, implicituserIds
(multiple options: anyOf)Filter members by user ID. Specify the parameter multiple times to filter by multiple user IDs.- [array] required
- string requiredpattern^[A-Za-z0-9-]+$
- string requiredpattern^[A-Za-z0-9-]+$
OR
Response body
- {object}Response object.
data
{object} requiredResult data.members
[array] requiredAn array of members in the org role.- {object}An org role member object.
id
string requiredID (username) of the org member. For users who are not finalized this ID may change on finalisation.pattern^[A-Za-z0-9-]+$name
stringDisplay name from the member profile.emails
[array]Email addresses of the member.- {object}Email addresses of the member.
address
stringverified
booleanjoinedAt
stringThe time the member joined the org.lastLoginTime
stringThe time the member last logged in.finalized
boolean requiredWhether the account has been fully set up by the user.type
string requiredHow the member was added to the role. `explicit` means manually added; `implicit` means provisioned via Directory Sync.one ofexplicit, implicitpagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
GET /v1/org-roles/{roleId}/members
Example response
200 OK
A list of members in the org role.
JSON
{
"data": {
"members": [
{
"id": "john-doe",
"name": "John Doe",
"emails": [
{
"address": "john@example.com",
"verified": true
}
],
"joinedAt": "2021-01-20T11:19:53.175Z",
"lastLoginTime": "2021-01-20T11:19:53.175Z",
"type": "explicit"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}