Get User Organization Roles By User ID And Organization ID
DescriptionGet user roles in an organization.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Request
URLURL
Path Parameters
Path Parameters
The userId or user account identifier.
Unique identifier (GUID) of the organization.
Authentication
Response
Response BodyResponse Body
200 OK
array
of
RoleDto
of type application/json
{
"createdBy": "string",
"createdDate": "string",
"displayName": "string",
"expiresAt": 0,
"lastUpdatedBy": "string",
"lastUpdatedDate": "string",
"name": "string",
"organizationLink": "string",
"resource": "string",
"visible": false
}
The name of the role.
The link to the organization.
The organization role display name.
The timestamp the role expires at (measured in number of seconds since 1/1/1970 UTC).
Last Updated time of the role.
The timestamp the role was updated at (measured in number of seconds since 1/1/1970 UTC).
The Creator of the role.
The timestamp the role was created at (measured in number of seconds since 1/1/1970 UTC).
The resource in which the role is scoped to. The resource will be embedded in the Access Token “perms” claim, as part of the role.
Indicates if the role is visible.
Errors
The user is not authorized to use the API
The user is forbidden to use the API
User not found | Organization not found
The user has sent too many requests
An unexpected error has occurred while processing the request
Code Samples
cURL Command
Vendor Extensions
x-required-roles: org_owner,org_admin
x-slo-tier: TIER2