[VMC on AWS] Create, update, and remove roles with the MOB
searchcancel
[VMC on AWS] Create, update, and remove roles with the MOB
book
Article ID: 329443
calendar_today
Updated On: 09-10-2024
Products
VMware Cloud on AWS
Issue/Introduction
To provide the steps to create and modify roles by using the MOB.
Symptoms: Users are unable to create, update, or remove roles through the VMware Cloud on AWS vCenter UI.
Resolution
To view all privileges: https://VMC-SDDC-ADDRESS/mob/?moid=AuthorizationManager&doPath=privilegeList To view all roles: https://VMC-SDDC-ADDRESS/mob/?moid=AuthorizationManager&doPath=roleList Note: The privileges and roles will be needed for the following steps.
To create a new role:
Open a browser and navigate to https://VMC-SDDC-ADDRESS/mob/?moid=AuthorizationManager&method=addRole
In the "name (required)" field, enter the role name.
In the "privIds (optional)" field, enter the array of privileges needed for the role (this list can be viewed by navigating to the privileges list URL provided above).
Click "Invoke Method" once all privileges have been added.
If successful, the value returned is "Method Invocation Result: int".
The role will be visible in the roles view link and in the vCenter UI in the "Roles" section.
To update a role:
Open a browser and navigate to https://VMC-SDDC-ADDRESS/mob/?moid=AuthorizationManager&method=updateRole
In the "roleId (required)" field, enter the value of the role needing to be updated.
In the "newName (required)" field, enter the name of the role. This can be a new role name or an existing role name. When choosing an existing role name, the user will not be prompted that the role already exists.
In the "privIds (optional)" field, update the array of privileges as needed.
Click "Invoke Method" once all the values have been updated.
If successful, the value returned is "Method Invocation Result: void".
To remove a role:
Open a browser and navigate to https://VMC-SDDC-ADDRESS/mob/?moid=AuthorizationManager&method=removeRole
In the "roleId (required)" field, enter the value of the role needing to be removed.
In the "failIfUsed (required)" field, enter "true" (without quotes).
Click "Invoke Method" once the information has been entered.
If successful, the value returned is "Method Invocation Result: void".
Additional Information
Impact/Risks: When using the MOB to make changes, users will not be prompted for confirmation before making any changes, including removing roles. A custom role can not have privileges higher than the CloudGlobalAdmin role.