Passer au contenu principal
GET
/
roles
/
{id}
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.roles.get("id");
}
main();
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>"
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

ID of the role to retrieve.

Réponse

Role successfully retrieved.

id
string

ID for this role.

name
string

Name of this role.

description
string

Description of this role.