Automation

 View Only
  • 1.  Set global permissions via powercli? - vCenter 6

    Posted Jul 19, 2016 06:52 PM

    Anyone know if this is possible?  Thanks.



  • 2.  RE: Set global permissions via powercli? - vCenter 6

    Posted Jul 19, 2016 08:09 PM

    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



  • 3.  RE: Set global permissions via powercli? - vCenter 6

    Posted Jul 20, 2016 06:17 PM

    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.



  • 4.  RE: Set global permissions via powercli? - vCenter 6
    Best Answer

    Posted Jul 21, 2016 07:13 AM

    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 & VCSA post.



  • 5.  RE: Set global permissions via powercli? - vCenter 6

    Posted Jul 21, 2016 01:47 PM

    Thanks, I'll take a look.



  • 6.  RE: Set global permissions via powercli? - vCenter 6

    Posted Mar 03, 2017 10:31 AM

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



  • 7.  RE: Set global permissions via powercli? - vCenter 6

    Posted Jul 31, 2020 04:35 PM

    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.