[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator

Update Org Role Bindings For Multiple Users

Description

Updates the organization role bindings of multiple users in an organization.

Request

Request

URL

URL


patch
https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-org-role-bindings
Copy

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

UserOrgRoleBindingItems of mimetype application/json Optional

The request body to update organization role bindings

{
    "orgsToAdd": [
        "...",
        "..."
    ],
    "orgsToRemove": [
        "...",
        "..."
    ],
    "roles": [
        "...",
        "..."
    ],
    "users": [
        "...",
        "..."
    ]
}
array of string
orgsToAdd Optional

The organization roles to add.


array of string
orgsToRemove Optional

The organization roles to remove.


array of string
roles Optional

The list of the roles.


array of string
users Optional

The list of the users.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns UserOrgRoleBindingItems of type application/json
{
    "orgsToAdd": [
        "...",
        "..."
    ],
    "orgsToRemove": [
        "...",
        "..."
    ],
    "roles": [
        "...",
        "..."
    ],
    "users": [
        "...",
        "..."
    ]
}
array of string
orgsToAdd Optional

The organization roles to add.


array of string
orgsToRemove Optional

The organization roles to remove.


array of string
roles Optional

The list of the roles.


array of string
users Optional

The list of the users.

Errors

Errors

400

Bad Request - The request is either incomplete or incorrect


401

Unauthorized - The user is not authorized to use the API


500

Internal Server Error - An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl -X PATCH -H "Content-Type: application/json" -d '{"orgsToAdd":["...","..."],"orgsToRemove":["...","..."],"roles":["...","..."],"users":["...","..."]}' https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-org-role-bindings
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: userOrgRoleBindingItems


Feedback

Was this page helpful?