[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
Update Org Roles With Binding
DescriptionUpdate org roles with org bindings for a user in an organization
Request
URLURL
https://console.navigator.vmware.com/cphub/api/auth/v1/users/{userId}/orgs/{orgId}/org-roles-with-binding
Path Parameters
Path Parameters
string
orgId
Required
Unique identifier (GUID) of the organization.
string
userId
Required
The userId or user account identifier.
Query Parameters
Query Parameters
string
context
Optional
context can be OPERATOR, PROVIDER or TENANT.
Request Body
Request Body
OrgRoleItemsV2
of mimetype application/json
Optional
Request body to update org roles with org bindings for a user in an organization
{
"orgItems": {
"orgsToAdd": [
"...",
"..."
],
"orgsToRemove": [
"...",
"..."
]
},
"orgRoleItems": {
"roleNamesToAdd": [
"...",
"..."
],
"roleNamesToRemove": [
"...",
"..."
]
},
"roleId": "..."
}
string
roleId
Optional
The unique identifier of the role.
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
OrgRoles
of type application/json
{
"orgRoles": [
{
"displayName": "...",
"id": "...",
"memberType": "DIRECT",
"name": "...",
"orgId": "..."
},
{
"displayName": "...",
"id": "...",
"memberType": "DIRECT",
"name": "...",
"orgId": "..."
}
]
}
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 '{"orgItems":{"orgsToAdd":["...","..."],"orgsToRemove":["...","..."]},"orgRoleItems":{"roleNamesToAdd":["...","..."],"roleNamesToRemove":["...","..."]},"roleId":"..."}' https://console.navigator.vmware.com/cphub/api/auth/v1/users/{userId}/orgs/{orgId}/org-roles-with-binding
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
User Operations
get
get
get
patch
patch