# userServiceRoles

Audience: Developer

List the per-service roles currently assigned to a user within a tenant, read directly from Zitadel.

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](https://docs.pyck.cloud/api/services/management.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [UserServiceRolesInput](https://docs.pyck.cloud/api/inputs/userservicerolesinput.md)! |

## Returns

\[String!\]!

## Example

Returns the per-service roles assigned to a user within a tenant, read directly from Zitadel. Tenant-admin only.

```graphql
query GetUserServiceRoles($input: UserServiceRolesInput!) {
  userServiceRoles(input: $input)
}
```

**Variables**

```json
{
  "input": {
    "tenantId": "<tenant UUID>",
    "userId": "<management user UUID>"
  }
}
```
