VMware Cloud Community
mark_chuman
Hot Shot
Hot Shot
Jump to solution

Set global permissions via powercli? - vCenter 6

Anyone know if this is possible?  Thanks.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

There is a SSO SDK, but I have to admit I never tried that.

There is also the ssowrench utility in the VCSA, see William's How to Add/Remove vCenter SSO Identity Sources Using the Command-Line for Windows vCenter Server & V... post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership
Jump to solution

The following set a permission on the rootfolder.

Is that what you mean by "global permission"?

$entity = Get-Folder -NoRecursion

$user = 'user@domain.com'

$role = Get-VIRole -Name Administrator

New-VIPermission -Entity $entity -Principal $user -Role $role -Propagate:$true -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
mark_chuman
Hot Shot
Hot Shot
Jump to solution

Thanks Luc.  I'm referring to this:

-     Login to web client with administrator@vsphere.local

-     Go to administration, access control, global permissions, manage.

-     If I add a user here with readonly role for example.  That permission entry gets added to all vCenter servers.

I can loop through all the VCs with new-vipermission, but wanted to see if there was powercli commandlets to mimic adding global permissions through the gui.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

There is a SSO SDK, but I have to admit I never tried that.

There is also the ssowrench utility in the VCSA, see William's How to Add/Remove vCenter SSO Identity Sources Using the Command-Line for Windows vCenter Server & V... post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
mark_chuman
Hot Shot
Hot Shot
Jump to solution

Thanks, I'll take a look.

Reply
0 Kudos
sathiyavd
Enthusiast
Enthusiast
Jump to solution

Did someone got a solution for this...looking for command to set global permission via powercli

Reply
0 Kudos
wreedMH
Hot Shot
Hot Shot
Jump to solution

I am looking for a solution also. We are trying to export Global Permissions from one vCenter to another. Luckily its not so much, I can just do it by hand.

Reply
0 Kudos