Organizations

Assign roles to organization user members

Assign roles to user members of the specified organization.

post/api/organizations/{id}/users/roles

Request

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

Path parameters

idstring required

The unique identifier of the organization.

Request body

userIdsstring[] required

An array of user IDs to assign roles.

organizationRoleIdsstring[] required

An array of organization role IDs to assign. User existed roles assignment will be ignored.

Response

Roles were assigned to organization users successfully.

Changes

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