v1

latestOpenAPI 3.0.12026-08-0435481.5 MB
Organizations

Assign roles to a user in an organization

Assign roles to a user in the specified organization with the provided data.

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

Path parameters

idstring required

The unique identifier of the organization.

userIdstring required

The unique identifier of the user.

Request body

organizationRoleIdsstring[]

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

organizationRoleNamesstring[]

An array of organization role names to assign to the user. User existed roles assignment will be ignored.

Response

Roles were assigned to the user successfully.

organizationRoleIdsstring[] required

An array of organization role IDs that were assigned to the user, deduplicated and resolved from any provided role names.