vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
764 stars 608 forks source link

Create object and commands to assign global permission (#473) #638

Open win32asm opened 1 week ago

win32asm commented 1 week ago

vCenter UI provides functionality to set 'global permissions' for accounts: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-C7702E31-1623-4189-89CB-E1136AA27972.html However, there is no automation for this operation.

The approach taken is to communicate with vCenter MOB and execute the request modelling browser operation.

vmwclabot commented 1 week ago

@win32asm, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

et1975 commented 1 week ago

Closes #473

win32asm commented 1 week ago

@et1975 does it make sense to change prefix of cmdlet object names from *-VcenterServer* to, say, *-VCMOB* ? like, Connect-VCMOBServer, Disconnect-VCMOBServer, Set-VCMOBGlobalPermission

dmilov commented 1 week ago

@lamw I see code borrowed from your repo in this PR. Can you take a look at the PR from the perspective of code VMware OSS policies? Thanks!

lamw commented 2 days ago

LGTM

win32asm commented 20 hours ago

@dmilov anything else we need to do to have the code included? Thanks!