Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
users
/
{id}
/
effective-permissions
/
sources
/
effective-roles
Lists the roles which grant the user a given permission (whether directly or through groups).
curl --request GET \
  --url https://{tenantDomain}/api/v2/users/{id}/effective-permissions/sources/effective-roles \
  --header 'Authorization: Bearer <token>'
{
  "roles": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "sources": [
        "direct"
      ]
    }
  ],
  "next": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

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

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 user to retrieve the permissions for.

Paramètres de requête

from
string

Optional Id from which to start selection.

take
integer

Number of results per page. Defaults to 50.

Plage requise: x >= 1
resource_server_identifier
string
requis

The identifier of the resource server for which to calculate user permissions.

Required string length: 1 - 600
permission_name
string
requis

Name of this permission

Required string length: 1 - 280

Réponse

User's effective permission role sources successfully retrieved.

roles
object[]
requis

Roles with the specified permission assigned to the user, both directly and via groups.

next
string

A cursor to be used as the "from" query parameter for the next page of results.