Skip to main content
POST
https://{tenantDomain}/api/v2
/
roles
/
{id}
/
groups
Assign groups to a role
curl --request POST \
  --url https://{tenantDomain}/api/v2/roles/{id}/groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "groups": [
    "<string>"
  ]
}
'

Documentation Index

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

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

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier for the role (service-generated).

Body

groups
string[]
required

Array of group IDs to assign to the role.

Minimum array length: 1

Unique identifier for the group (service-generated).

Required string length: 18 - 26
Pattern: ^grp_[1-9a-km-zA-HJ-NP-Z]{14,22}$

Response

Groups successfully assigned to role.