Get a role

Returns one role by Auth0 role ID, including its permissions. Requires role:read or usermanagement.read.

Request

GET /role/{roleId}

Path Parameters

ParameterTypeRequiredDescription
roleIdstringYesAuth0 role ID (for example rol_abc123).

Headers

HeaderValue
AuthorizationBearer <token> (or HMAC headers, see Authentication)

Response

{
  "id": "rol_abc123",
  "name": "Makaira.ADMIN",
  "description": "Administrator",
  "permissions": ["search.read", "search.write"]
}

HTTP 404 if the role is not found.

Path Params
string
required
Response
200

Successful response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!