Passer au contenu principal
DELETE
/
members
/
{user_id}
/
roles
Remove roles from a member
curl --request DELETE \
  --url https://{tenantDomain}/my-org/v1/members/{user_id}/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_ids": [
    "rol_SO2j0sFo9NFa3F9w"
  ]
}
'

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}$).+\|.+$

Corps

application/json
role_ids
string[]
requis
Required array length: 1 - 10 elements

The ID of a role that can be assigned to a member of an organization.

Pattern: ^rol_[A-Za-z0-9]{16}$

Réponse

Role(s) successfully unassigned from member.