pspete / psPAS

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

Get-PASUser -id does not return the full extended attributes but only return the default Gen2 search attributes #341

Closed DavidVastola closed 3 years ago

DavidVastola commented 3 years ago

$TypeName of "psPAS.CyberArk.Vault.User.Extended" is used twice in psPAS.CyberArk.Vault.ACL.Formats.ps1xml. Get-PASUser with Gen2ID should use the second "psPAS.CyberArk.Vault.User.Extended" while the other Gen2 usage should return the first "psPAS.CyberArk.Vault.User.Extended"

Get-PASUser -id 123 should return the full of attributes which right now just returns the first format

pspete commented 3 years ago

The TypeName is defined twice, first for TableView (the default view), and secondly for ListView. All attributes should be available in the returned data. If you want to display them then | Format-List or | select-object * can be used

pspete commented 3 years ago

Get-Member can be used to confirm all available properties returned in the results regardless of the view format used.

Closing as believe what is reported is the expected configuration and behaviour. Please comment and provide further details if you think there is something to fix.