- How to use VMware vSAN ReadyNode Configurator - Fri, Dec 17 2021
- VMware Tanzu Kubernetes Toolkit version 1.3 new features - Fri, Dec 10 2021
- Disaster recovery strategies for vCenter Server appliance VM - Fri, Nov 26 2021
Administrator—Can perform all actions on the object. The role also has all privileges of the Read Only role. With the Administrator role, you can assign privileges to users and groups.
Read Only—Users can view the state of an object, but not modify it. For example, users cannot view the remote console for a host; no action is permitted.
No Access—Cannot view or change object. All new users are assigned this role by default.
Then there are specific roles such as No Cryptography Administrator, Trusted Infrastructure Administrator (for vSphere Trust Authority), and No Trusted Infrastructure Administrator.
Where to add new roles? ^
Log in to the vCenter Server by using the vSphere Client and go to Administration > Click Roles in the Access Control area. Select Administration and click Roles in the Access Control area.
To create a role, just click the Create Role action icon.
To create the role by cloning, just select a role, and click the Clone role action icon.
Click OK to validate. Then select the newly created role and click the Edit icon. As you can see, the No cryptography administrator role has all privileges except cryptographic operations. This role was created on purpose and is useful when you don't want to pass any of the cryptographic operations to a part of your team.
This is the safest way of creating a new role based on an original role. In this way, when you change something, you'll be changing the clone, not the original.
After you create a new role, you can assign privileges. The fact is that a role is a predefined set of privileges that define read properties or rights to perform actions. As an example, the Datastore role allows the creation and modification of datastores.
vCenter has two different kinds of roles:
- System Roles—These are permanent roles. You are not allowed to edit the privileges associated with these roles.
- Sample Roles—There are sample roles provided by VMware, and they are intended to be used for cloning, modifying, or removing.
Sample roles cannot be reset back to default, so in order to avoid losing the original config, simply clone the role again before making any modifications.
What different objects exist in vCenter Server? ^
Let's quickly recap the different objects we can find within vCenter Server.
- Permissions—Each object in the vCenter hierarchy has associated permissions. Each permission specifies which privileges one group or user has on the object.
- Privileges—Access controls to the resource. Privileges are grouped into roles, which are mapped to users or groups.
- Users and groups—Only users authenticated through single sign-on (SSO) can be given some privileges. Users must be defined within the SSO or be users from external identity sources, such as Microsoft AD or other LDAP.
- Roles—A role allows you to assign permission to an object. Administrator and Resource Pool Administrator are predefined roles. You can clone or change most predefined roles (except Administrator).
- Global Permissions—Global permissions are special. They are applied to a global root object that spans different solutions. Imagine that you have vCenter Server and vRealize Orchestrator installed side by side. These two products can use global permissions. For example, you can give a group of users Read permissions to all objects in both object hierarchies. Global permissions are replicated across the vsphere.local domain. Global permissions do not provide authorization for services managed through vsphere.local groups.
When you assign permission to an object, you can choose whether the permission propagates down the object hierarchy. You set propagation for each permission. Propagation is not universally applied; instead, you must check a checkbox for this. Permissions defined for a child object always override the permissions that are propagated from parent objects.
Where possible, assign a role to a group rather than individual users to grant privileges to that group. This is the same logic as in Windows administration. Grant permissions only on the objects where they are needed, and assign privileges only to users or groups that must have them. A good practice is to group objects into folders. Then you can assign permissions to folders containing hosts and other objects.
Go to the VMs and templates view. Pick or create a new folder and add objects inside. Select the Permissions tab, and click the plus sign to add new permission.
You should always enable propagation (unless it is not wanted) when you assign permissions to an object. This means when new objects are inserted into the inventory hierarchy, they inherit all permissions, as they should, so you don't have to assign them manually.
Note: You can use the No Access role to mask specific areas of the hierarchy if you do not want certain users or groups to have access to the objects in that part of the object hierarchy.
How to create users? ^
Go to Single Sign On, and within this section, select Users and Groups. Then pick the domain in which you want to create your user and click Add.
You'll get a new popup window asking you for the details.
Note: When you set up a Microsoft AD as the identity source, you'll still need to add/remove users of your AD via the Microsoft AD Users and Objects console. Within the vSphere client, the button is grayed out.
For groups, proceed in the same manner.
VMware directory service works in a similar way as Microsoft AD, where changes on one vCenter Server are propagated to other vCenter Servers connected to the same SSO. So, the VMware directory service replicates the role changes that you make to other vCenter Server systems. However, the assignments of roles to specific users and objects are not shared across vCenter Server systems.
Subscribe to 4sysops newsletter!
This topic is part of a free VCP7-DCV study guide that will help you to pass VCP-DCV 2020 certification based on the vSphere 7 product. You'll find all the topics on this page. After successfully passing the exam, you'll be certified VCP-DCV 2020.