Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-IntersightAaaAuditRecord returns empty field for MoDisplayNames #88

Open
dchosnek opened this issue Dec 21, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@dchosnek
Copy link

Issuing a GET to /api/v1/aaa/AuditRecords returns a list for MoDisplayNames but the PowerShell SDK returns an empty field for that property.

To Reproduce

Get-IntersightAaaAuditRecord | select ObjectMoid,MoDisplayNames -First 20

Version used
Intersight.PowerShell 1.0.9.6484
PowerShell 7.2.4

Expected behavior
I would expect to see something similar to what the API returns:

      "MoDisplayNames": {
        "Name": [
          "BT-ntp-policy"
        ]
      }
@Ghufz Ghufz added the bug Something isn't working label Aug 26, 2024
@Ghufz
Copy link
Collaborator

Ghufz commented Aug 26, 2024

This is an issue from SDK side.
As workaround you can use below code snippet

$result = (Get-IntersightAaaAuditRecord -Json | ConvertFrom-Json).Results
$result[0].MoDisplayName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants