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
tenantId
path True

string

uuid

The tenant ID in which to get roles.

userId
path True

string

Principal ID or email address to get roles for..

Responses

Name Type Description
200 OK

AccessControlGetRolesResponse

Success.

Definitions

Name Description
AccessControlGetRolesResponse
TenantRole

AccessControlGetRolesResponse

Name Type Description
Roles

TenantRole[]

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.