Authorization Manager Merge Permissions

Authorization Manager Merge Permissions

Reassigns all permissions of a role to another role.

Required privileges: Authorization.ReassignRolePermissions

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/AuthorizationManager/{moId}/MergePermissions
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case AuthorizationManager/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.


Request Body
MergePermissionsRequestType of type(s) application/json
Required
{
    "srcRoleId": 0,
    "dstRoleId": 0
}
integer As int32 As int32
srcRoleId
Required

The ID of the source role providing the permissions which are changing.

integer As int32 As int32
dstRoleId
Required

The ID of the destination role to which the permissions are reassigned.

Authentication
This operation uses the following authentication methods.
Responses
204

No Content

Operation doesn't return any data structure

500

NotFound: if either the source or destination role does not exist.

InvalidArgument: if dstRoleId is the View or Anonymous role or if both role IDs are the same.

AuthMinimumAdminPermission: if srcRoleId is the Administrator role, meaning that applying the change would leave the system with no Administrator permission on the root node.

NoPermission: if current session does not have any privilege in the source or destination role or "Authorization.ReassignRolePermissions" privilege on the root folder.

Returns VimFault of type(s) application/json
This response body class contains all of the following: MethodFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ]
}