Skip to content

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

Name Type
input UserServiceRolesInput!

[String!]!

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>"
}
}