VMware Cloud Community
bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

Remove permission from VCSA for non admins?

Hello,

My environment is vSphere 7.0.3.

I have restricted permissions from my VMUser AD group so that users in this group can't edit a lot of things (hosts, clusters, etc).  However since they have permission to power and edit VMs themselves I was wanting to limit permission on the VCSA VM to only the "AD Admins" group so that someone doesn't alter the VCSA by accident.

I checked on VMware KB and all I could find were directions to right click on the VM and choose "Permissions" then to delete whoever I want however I do not see a "Permissions" option and I only see a "Add Permission" option which doesn't help me.  I also checked the permissions tab on that VM and see the full list however I am not able to delete the "VMUser" entry (I'm assuming because they are defined at the global level).

Can someone please point me in the right direction to be able to limit access (or even sight) of the VCSA VM?

Reply
0 Kudos
1 Solution

Accepted Solutions
pmichelli
Hot Shot
Hot Shot
Jump to solution

Permissions in VMware are unlike those in Windows. You can set them per object . Here is what I do :

I have various VM and Template folders (be careful what type of folders you create).

Put VMs into respective folders : Network, Auditing, Developers etc.

Create the custom role I mentioned. Assign that role to said users/group

Grant permission ONLY to the folders you want users to see. Do NOT give them top level access to the entire vCenter object unless you want them to be able to see host config, iSCSI and network config, datastores etc (to me this is a huge NO. Staff see only VMs that they have access to and nothing else)

You may need to remove the permissions from the users / groups from the top level of vCenter first, then apply them only to the folders you want them to see. 

They will only ever be able to manage the VMs inside the folder you grant them access to. They won't be able to see the vCenter VCSA , let alone be able to power it off

View solution in original post

10 Replies
pmichelli
Hot Shot
Hot Shot
Jump to solution

61 people looked at this and no one could find the time to reply. Sheesh this place is falling apart.

Go to : Administration - Roles

Find one that has most of the permissions you need, clone and rename it, then check and/or uncheck things until you get to your desired state.

Lastly, assign the role to whatever users or groups you like

bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

Thank you very much for the reply.

Wouldn't this still allow a user to, for example, power off my VCSA if I gave their group permission to power on/off VMs?  I thought a simple fix would have been to remove permissions for non-admins to a folder and then place the VCSA into said folder, but the VCSA does not appear in the folder tab.

Reply
0 Kudos
pmichelli
Hot Shot
Hot Shot
Jump to solution

Permissions in VMware are unlike those in Windows. You can set them per object . Here is what I do :

I have various VM and Template folders (be careful what type of folders you create).

Put VMs into respective folders : Network, Auditing, Developers etc.

Create the custom role I mentioned. Assign that role to said users/group

Grant permission ONLY to the folders you want users to see. Do NOT give them top level access to the entire vCenter object unless you want them to be able to see host config, iSCSI and network config, datastores etc (to me this is a huge NO. Staff see only VMs that they have access to and nothing else)

You may need to remove the permissions from the users / groups from the top level of vCenter first, then apply them only to the folders you want them to see. 

They will only ever be able to manage the VMs inside the folder you grant them access to. They won't be able to see the vCenter VCSA , let alone be able to power it off

bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

That is awesome, thank you very much for taking the time to explain that.  I'll give that a shot right now.

Reply
0 Kudos
bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

If I tweak permissions on the role I made is it applied in real time?  Does the user need to refresh the browser or do they need to fully log off and back on again?  I am testing permissions using a test account and want to make sure that I am properly testing.

Thanks again!

Reply
0 Kudos
pmichelli
Hot Shot
Hot Shot
Jump to solution

Log out and back in.

Also : MAKE SURE you have at least one account with full admin to top level and all child objects. (your administrator@vsphere.local) is a good one. Just in case you accidentally lock yourself out

 

Note: Permissions do not propagate automatically in VMware. You need to tell it to apply to child objects (if you desire, like a folder and its contents)

bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

Good to know, thanks.

My team has been using vApps as an organizational device instead of folders, which I am planning on changing.  Is it normal that if I drag a nested vApp environment into a folder I am unable to expand any of the parent vApps to get to the individual VMs (even as the admin)?  If I select a parent vApp and check under the VMs tab I can see all VMs and child vApps however if I select any of them it snaps me back over to the 1st leftmost tab (whatever the one to the left of the folder tab is called...wish there was a tooltip so I could make more sense).

Reply
0 Kudos
pmichelli
Hot Shot
Hot Shot
Jump to solution

I do not have much experience with vApps so I can't answer that for you.

One more note on the permissions.

For example : You can grant a user read access to the top level of vCenter and have it propagate all the way down, this would allow a user to see everything but not make changes.

Say you create a VM and Template folder called Developers and grant a user the ability to interact with VMs (say a power user role)..

The user will have read from top level down with child propagation, but will have poweruser abilities to the folder you set those extra permissions. Very much unlike Windows and how least access defines the permission scope. VMware is per object. If you set a specific permission that will take precedence over one that is propagated via child access.. I hope this makes sense

bkboudreaugd
Enthusiast
Enthusiast
Jump to solution

It does.  I can't thank you enough for providing all this information.  I am leaps toward what I am wanting to do and am now just tweaking permissions based on what the users actually need to do their work.

Reply
0 Kudos
pmichelli
Hot Shot
Hot Shot
Jump to solution

Glad to help out. Feel free to ping me if you need more clarification. I went through all this last year when we hardened our deployment

Reply
0 Kudos