pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
295 stars 91 forks source link

Get-PASGroup To Display Group Membership #374

Closed keagylabs closed 3 years ago

keagylabs commented 3 years ago

Is your feature request related to a problem? Please describe. I cannot utilize psPAS to export vault group membership. It seems CyberArk has added this functionality to v12.0+.

Describe the solution you'd like https://cyberark-customers.force.com/s/article/PVWA-REST-Get-groups-API-does-not-return-members

In PVWA RESTv12.0 and above, a new function was introduced in the "get groups" API to display the users contained within a group in the vault. Online documentation url https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/WebServices/GetGroupsFromVault.htm.

Describe alternatives you've considered Updating Get-PASGroup with a function to display members in that group. The default "members" column just displays "System.Object[]"

Additional context You the man pspete! Cheers!

pspete commented 3 years ago

Hi @keagylabs - thanks for requesting this. Added -includeMembers parameter to Get-PASGroup

https://pspas.pspete.dev/commands/Get-PASGroup#example-7