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

Update Org Roles For Multiple Users

Description

Updates the organization roles of multiple users in an organization.

Request

Request

URL

URL


patch
https://console.navigator.vmware.com/cphub/api/auth/v1/orgs/{orgId}/users-org-roles
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

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.


array of ExtendedUsername
users Optional

The list of user objects.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response 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.


array of ExtendedUsername
users Optional

The list of user objects.

Errors

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

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

Vendor Extensions

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


Feedback

Was this page helpful?