# serviceRoles

Audience: Developer

List the per-service roles that can be assigned to users (the fixed, seeded set).

List the per-service roles that can be assigned to users (the fixed,
seeded set). For populating an admin UI. Requires admin on every tenant
the request acts on (X-Pyck-Tenant-Id; absent or `all` means every enabled
tenant the caller holds a role in).

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

## Returns

\[[ServiceRole](https://docs.pyck.cloud/dev/api/types/servicerole.md)!\]!

## Example

Returns the fixed set of per-service gate roles that can be assigned to users (inventory_service, picking_service, …). Tenant-admin only.

```graphql
query GetServiceRoles {
  serviceRoles {
    key
  }
}
```
