---
updatedAt: 2026-04-21T08:57:19.000Z
agentTools:
  projectIndex: https://docs.mesh.complyadvantage.com/llms.txt
---

# Get details about a role

Returns details for a given role.


You need the "View roles in account" permission to use this endpoint.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "identity_CustomRoleWithPermissionsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/identity_RoleWithPermissionResponse"
          },
          {
            "properties": {
              "account_identifier": {
                "description": "The account identifier of the role.",
                "example": "00000000-0000-0000-0000-000000000000",
                "format": "uuid",
                "type": "string"
              },
              "archived_at": {
                "description": "Date and time the role was archived, or null if active.",
                "example": "2023-01-01T10:10:10.000Z",
                "format": "date-time",
                "nullable": true,
                "type": "string"
              },
              "created_at": {
                "description": "Date and time the role was last created.",
                "example": "2023-01-01T10:10:10.000Z",
                "format": "date-time",
                "type": "string"
              },
              "created_by": {
                "default": "00000000-0000-0000-0000-000000000000",
                "description": "Created by identifier",
                "format": "uuid",
                "type": "string"
              },
              "updated_at": {
                "description": "Date and time the role was last updated.",
                "example": "2023-01-01T10:10:10.000Z",
                "format": "date-time",
                "type": "string"
              },
              "updated_by": {
                "default": "00000000-0000-0000-0000-000000000000",
                "description": "Updated by identifier",
                "format": "uuid",
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "required": [
          "account_identifier",
          "created_at",
          "created_by",
          "description",
          "identifier",
          "name",
          "permissions",
          "updated_at",
          "updated_by",
          "users_assigned_count"
        ],
        "type": "object"
      },
      "identity_DefaultRoleWithPermissionsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/identity_RoleWithPermissionResponse"
          }
        ],
        "required": [
          "description",
          "identifier",
          "name",
          "permissions",
          "users_assigned_count"
        ],
        "type": "object"
      },
      "identity_RoleWithPermissionResponse": {
        "properties": {
          "description": {
            "description": "Description of the role.",
            "example": "View Cases",
            "type": "string"
          },
          "identifier": {
            "description": "The unique identifier of the role.",
            "example": "00000000-0000-0000-0000-000000000000",
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "description": "Name of the role.",
            "example": "Supervisor",
            "type": "string"
          },
          "permissions": {
            "description": "Role permission identifiers",
            "example": [
              1
            ],
            "items": {
              "description": "Role permission identifiers",
              "format": "int32",
              "type": "integer"
            },
            "type": "array",
            "uniqueItems": true
          },
          "users_assigned_count": {
            "description": "Number of users assigned.",
            "example": 1,
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "description",
          "identifier",
          "name",
          "permissions",
          "users_assigned_count"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "HTTP Bearer Token Authentication",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Mesh API",
    "version": "v2.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v2/iam/roles/{role_identifier}": {
      "get": {
        "description": "Returns details for a given role.\n\n\nYou need the \"View roles in account\" permission to use this endpoint.",
        "operationId": "identity_v2_iam_roles_role_identifier_getSpecificRole",
        "parameters": [
          {
            "description": "The identifier of the role that you want to retrieve.",
            "example": "00000000-0000-0000-0000-000000000000",
            "in": "path",
            "name": "role_identifier",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/identity_CustomRoleWithPermissionsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/identity_DefaultRoleWithPermissionsResponse"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Get details about a role",
        "tags": [
          "IAM"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "ComplyAdvantage Mesh API",
      "url": "https://api.mesh.complyadvantage.com"
    }
  ],
  "tags": [
    {
      "name": "IAM"
    }
  ]
}
```