> For the complete documentation index, see [llms.txt](https://docs.globalalerting.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globalalerting.com/web-api/user-roles.md).

# User Roles

## GET /V2/{tenantVarCode}/userroles

> Returns a list of user roles for specified tenant

```json
{"openapi":"3.0.4","info":{"title":"GAP REST API Documentation V2","version":"v2"},"tags":[{"name":"User Roles"}],"paths":{"/V2/{tenantVarCode}/userroles":{"get":{"tags":["User Roles"],"summary":"Returns a list of user roles for specified tenant","parameters":[{"name":"tenantVarCode","in":"path","description":"Tenant Var Code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"application/json;IEEE754Compatible=false":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"application/json;IEEE754Compatible=true":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}},"text/csv":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserRole"}}}}}}}}},"components":{"schemas":{"UserRole":{"type":"object","properties":{"TenantCode":{"type":"string","description":"Tenant Var Code","nullable":true},"RoleId":{"type":"string","description":"The unique identifier that represents a role","nullable":true},"RoleName":{"type":"string","description":"The name of the role","nullable":true}},"additionalProperties":false}}}}
```
