Access Control - List Roles By User
Get the roles assigned to a user within the scope of a tenant.
GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/users/{userId}/role
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
tenant
|
path | True |
string uuid |
The tenant ID in which to get roles. |
user
|
path | True |
string |
Principal ID or email address to get roles for.. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success. |
Definitions
Name | Description |
---|---|
Access |
|
Tenant |
AccessControlGetRolesResponse
Name | Type | Description |
---|---|---|
Roles |
Roles assigned to a principal. |
TenantRole
Name | Type | Description |
---|---|---|
RoleNames |
string[] |
Roles assigned to a principal in the context of TenantId |
TenantId |
string |
ID of the tenant in which roles are assigned. |