vmware / PowerCLI-Example-Scripts

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

Pulling disabled/locked information for vCenter users #439

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

I would like to get information for local vCenter users including whether the users are 1) disabled 2) locked.

Currently, I am using the Get-SsoPersonUser module from VMware.vSphere.SsoAdmin.

However, the fields returned are only Name, Domain, Description, FirstName, LastName and EmailAddress. Would it be possible to modify this module to also fetch whether users are disabled and/or locked? Or are there already existing modules that can get such information.

Thanks.

dmilov commented 3 years ago

Added Locked and Disabled properties to the Get-SsoPersonUser result.

Fixed in version 1.2.3 available on GitHub and PSGallery

ghost commented 3 years ago

Added Locked and Disabled properties to the Get-SsoPersonUser result.

Fixed in version 1.2.3 available on GitHub and PSGallery

Thanks @dmilov !