> This page is for version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://autodesk-poc.ferndocs.com/v2/llms.txt
> - v1: https://autodesk-poc.ferndocs.com/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://autodesk-poc.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://autodesk-poc.ferndocs.com/_mcp/server.

# roles

GraphQL QUERY

Fetches all the role names.

**Deprecated:** Use 'userProfileMetadata' query instead.

Reference: https://autodesk-poc.ferndocs.com/user-profile/queries/roles

## GraphQL Schema

```graphql
query ExampleQuery($filter: RolesInput!) {
  roles(filter: $filter) {
    roles {
      roleName
      roleId
    }
  }
}
```

## Variables

```json
{
  "filter": {
    "lang": "example"
  }
}
```