Authorization Manager Merge Permissions
Reassigns all permissions of a role to another role.
Required privileges: Authorization.ReassignRolePermissions
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}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"MergePermissionsRequestType Object"
The ID of the source role providing the permissions which are changing.
The ID of the destination role to which the permissions are reassigned.
No Content
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.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/AuthorizationManager/{moId}/MergePermissions