[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
Update Org Roles For Multiple Users
DescriptionUpdates the organization roles of multiple users in an organization.
Request
URLURL
https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-org-roles
Path Parameters
Path Parameters
string
orgId
Required
Unique identifier (GUID) of the organization.
Query Parameters
Query Parameters
string
context
Optional
context can be OPERATOR, PROVIDER or TENANT
Request Body
Request Body
UserOrgRoleItemsRemoveV2
of mimetype application/json
Optional
Request body to update organization roles of multiple users
{
"roleNamesToAdd": [
"...",
"..."
],
"roleNamesToRemove": [
"...",
"..."
],
"users": [
{
"idpId": "...",
"username": "..."
},
{
"idpId": "...",
"username": "..."
}
]
}
array of
string
roleNamesToAdd
Optional
The role names to add.
array of
string
roleNamesToRemove
Optional
The role names to remove.
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
UserOrgRoleItemsRemoveV2
of type application/json
{
"roleNamesToAdd": [
"...",
"..."
],
"roleNamesToRemove": [
"...",
"..."
],
"users": [
{
"idpId": "...",
"username": "..."
},
{
"idpId": "...",
"username": "..."
}
]
}
array of
string
roleNamesToAdd
Optional
The role names to add.
array of
string
roleNamesToRemove
Optional
The role names to remove.
Errors
401
Unauthorized - The user is not authorized to use the API
403
Forbidden - User does not have permission for this operation
500
Internal Server Error - An unexpected error has occurred while processing the request
Code Samples
cURL Command
curl -X PATCH -H "Content-Type: application/json" -d '{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."],"users":[{"idpId":"...","username":"..."},{"idpId":"...","username":"..."}]}' https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-org-roles
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: body
[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
On This Page
Service Organization Operations
post
post
delete
get
get
delete