VMware Cloud Community
rfrilling
Enthusiast
Enthusiast

Adding privileges to existing roles

I'm running the following script to add new vSphere 7 privileges to our existing roles. 

Set-VIRole -Role "vCenter - VM Deployment" -AddPrivilege (
Get-VIPrivilege -Id @(
"ContentLibrary.CheckInTemplate",
"ContentLibrary.CheckOutTemplate",
"ContentLibrary.AddCertToTrustStore",
"ContentLibrary.DeleteCertFromTrustStore",
"ContentLibrary.ManageClusterRegistryResource",
"ContentLibrary.ManageRegistry",
"ContentLibrary.ManageRegistryProject",
"InventoryService.Tagging.ObjectAttachable",
"VirtualMachine.Interact.SuspendToMemory",
"VirtualMachineClasses.Manage"
)
)

The script executes but only returns a False value and does not update the role. 

Name               IsSystem
----                    --------
vCenter - VM... False

After hours of online searching I thought I'd post here, hopefully for suggestions on what I may be missing. I'd update these values manually but need to update 10+ roles on over 70 vCenters. 

Thanks! 

0 Kudos
0 Replies