# userServiceRoles

Audience: Programmer

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.

**Served by:** [management](https://docs.pyck.cloud/latest/api/services/management.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `input` | [UserServiceRolesInput](https://docs.pyck.cloud/latest/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>"
  }
}
```
