pspete / psPAS

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

Account Comment Property Missing #151

Closed jdkang closed 5 years ago

jdkang commented 5 years ago

Your Environment

Expected Behaviour

Get-PASAccount would contain a 'comments' property.

Current Behaviour

Get-PASAccount does not contain a 'comments' property

Possible Solution

Unclear

Steps to Reproduce (for bug reports)

  1. Use Get-PASAccount on an account object with a comment.
  2. Inspect object

Sample Output

n/a

Context

Get an account's comment field.

pspete commented 5 years ago

Hi @jdkang

I cannot reproduce the described issue. After configuring a property called comment on a platform, the value is returned when querying the account:


C:\Users\petem> $token | Get-PASAccount -search flmbhywo | 
Select-Object -ExpandProperty platformAccountProperties | Select-Object comment

Comment    
-------    
SomeComment

C:\Users\petem> $token | Get-PASAccount -search flmbhywo

AccountID                 : 284_4
Safe                      : 1_XYZ_001_NZL
address                   : SOMEDOMAIN.COM
userName                  : flmbhywo
name                      : Z_WINDOMAIN_OFF1-SOMEDOMAIN.COM-flmbhywo
platformId                : Z_WINDOMAIN_OFF1
secretType                : password
platformAccountProperties : @{LogonDomain=SOMEDOMAIN; Comment=SomeComment}
secretManagement          : @{automaticManagementEnabled=True; lastModifiedTime=1556548796}
createdTime               : 29/04/2019 14:39:56
pspete commented 5 years ago

@jdkang - as the issue cannot be reproduced, the issue will be closed. Feel free to add additional information.