GET
/organization/users/{user_id}/rolesList user organization role assignments
Lists the organization roles assigned to a user within the organization.
user_idstringrequired
The ID of the user to inspect.
limitintegeroptional
A limit on the number of organization role assignments to return.
afterstringoptional
Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles.
orderstringoptional
Sort order for the returned organization roles.
200User organization role assignments listed successfully.
objectstringrequired
Always `list`.
dataarray<object>required
Role assignments returned in the current page.
has_morebooleanrequired
Whether additional assignments are available when paginating.
nextstringrequired
Cursor to fetch the next page of results, or `null` when there are no more assignments.
400The request parameters are invalid or the requested operation cannot be performed.
errorobjectrequired
403The caller does not have permission to perform this operation.
errorobjectrequired
Details about the permission error.
404The endpoint is unavailable or a requested resource was not found in this organization or project.
errorobjectrequired
429The request was rejected because a rate limit was exceeded.
errorobjectrequired
Error handling
A 400 is returned: The request parameters are invalid or the requested operation cannot be performed. A 403 is returned: The caller does not have permission to perform this operation. A 404 is returned: The endpoint is unavailable or a requested resource was not found in this organization or project. A 429 is returned: The request was rejected because a rate limit was exceeded.