vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

VMware.vSphere.SsoAdmin Group membership #440

Closed rschitz closed 3 years ago

rschitz commented 3 years ago

Hi, thanks for this great module. Is it possible to get group membership to check if a specific user is member of a specific group (i.e. list the Administrators group members)

dmilov commented 3 years ago

Hello, no at the moment. I can extend the Get-PersonUser cmdlet with Group parameter to return the members of the group.

dmilov commented 3 years ago

Implemented this one. I'll implement two more requests before publishing the module.

dmilov commented 3 years ago

Added -Group parameter to Get-SsoPersonUser. It allows getting members of a group the following way:

Get-SsoGroup -Name 'Administrators' -Domain 'vsphere.local' | Get-SsoPersonUser

Fixed in version 1.2.3 available on GitHub and PSGallery

rschitz commented 3 years ago

Thanks a lot @dmilov !