Passer au contenu principal
GET
/
members
/
{user_id}
/
roles
List member roles
curl --request GET \
  --url https://{tenantDomain}/my-org/v1/members/{user_id}/roles \
  --header 'Authorization: Bearer <token>'
{
  "roles": [
    {
      "id": "rol_SO2j0sFo9NFa3F9w",
      "name": "role1",
      "description": "role1 description"
    },
    {
      "id": "rol_BO2j1sFo9NFa3F9w",
      "name": "role2",
      "description": "role2 description"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Autorisations

Authorization
string
header
requis

The access token received from the authorization server in the OAuth 2.0 flow.

Paramètres de chemin

user_id
string
requis

The user ID.

Pattern: ^(?=.{1,1024}$).+\|.+$

Paramètres de requête

from
string

An optional cursor from which to start the selection (exclusive).

Required string length: 1 - 1000
take
integer
défaut:50

Number of results per page. Defaults to 50.

Plage requise: 1 <= x <= 100

Réponse

Retrieved memeber roles successfully.

roles
object[]
requis
next
string

Pagination cursor for the next page of results