Assign Roles To Clients On Organization
DescriptionAssign roles to the specified OAuth client/s in the organization.
User with Developer Role can assign only Organization Member and Developer.
Note: in case of partial success the caller must read the response to see which client ids have not been added successfully
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
Developer | ✔️ | ✔️ |
Request
URLURL
Path Parameters
Path Parameters
Unique identifier (GUID) of the organization.
Request Body
{
"ids": [
"string"
]
}
IDs of the members to whom the new roles will be assigned.
The custom roles that will be assigned to the members.
Deprecated: The organization role names that will be assigned to the member (use organizationRoles instead).
The organization roles that will be assigned to the members.
The service roles that will be assigned to the members.
Authentication
Response
Response BodyResponse Body
200 OK
Partial Success. Please read the response to see which client ids have failed to assign.
{
"failures": [
{
"id": "string",
"message": "string"
}
]
}
Errors
One or more clients already part of the organization
The user is not authorized to use the API
The user is forbidden to use the API
Organization with this identifier is not found. | Clients […] not found
The request could not be processed due to a conflict
The user has sent too many requests
An unexpected error has occurred while processing the request
Code Samples
cURL Command
Vendor Extensions
x-required-roles: org_admin,org_owner,developer
x-slo-tier: TIER2