---
title: "Get Role"
method: GET
path: "/roles/{roleId}"
tags: ["Role and Permission"]
---

# Get Role

`GET /roles/{roleId}`

Retrieves a role by identifier.

## Query parameters

- `fields` string

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Response `200`

OK

- Role — Role in the account.
  - `id` string, required — The identifier of the role.
  - `type` 'provisioned' | 'custom', required — The role type.
  - `name` string, required — Name of the role.
  - `description` string — Description of the role.
  - `permissions` Permission[] — List of permissions associated with role.
    - `name` string, required — Name of the permission.
    - `description` string, required — Human-readable description of the permission.
    - `category` string, required — The category a permission belongs to.
    - `entityType` PermissionEntityType, required — The entity type a permission applies to.
      - `name` string, required — Name of the entity type.
      - `description` string, required — Human-readable description of the entity type.
    - `dependsOn` string[], required — List of permission names that this permission depends on. Empty array if no dependencies.

## Other responses

- `400` — Error codes: * “invalid”: Invalid input in the query parameter mentioned in the “name” field on the error response. * “empty”: Empty input for the “roleId” path parameter variable.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": the authenticated user is not allowed to read the role.
- `404` — Error codes: * "notFound": the role could not be found by identifier.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/revisions/d42dac7c28a3/schema)
