Roles

Assign role to users

Assign a role to a list of users. The role must have the type User.

post/api/roles/{id}/users

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/roles/{id}/users
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

idstring required

The unique identifier of the role.

Request body

userIdsstring[] required

An array of user IDs to be assigned.

Response

The role was assigned to the users successfully.

Changes

No recorded changes to this operation across all 8 revisions of this API.