userServiceRoles
List the per-service roles currently assigned to a user within a tenant, read directly from Zitadel. Tenant-admin only. The Zitadel root organization is refused: it is not a tenant, and its accounts are managed in the Zitadel console.
Served by: management
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
input |
UserServiceRolesInput! |
Returns
Section titled “Returns”[String!]!
Example
Section titled “Example”Returns the per-service roles assigned to a user within a tenant, read directly from Zitadel. Tenant-admin only.
query GetUserServiceRoles($input: UserServiceRolesInput!) { userServiceRoles(input: $input)}Variables
{ "input": { "tenantId": "<tenant UUID>", "userId": "<management user UUID>" }}