This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Powershell CMDLET to list Assistant Admins

Thanks to the poster here I can get all assistant admin definitions via the API call to dra/assistantadmins/get. To this I'm using simple Powershell as follows:

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Basic <ibfuscated>")
$headers.Add("Content-Type", "text/plain")

$body = "{
`n    `"assistantAdminAndFilter`":{
`n        `"hidden`":`"0`",
`n        `"type`":`"AssistantAdmin`"
`n    },
`n    `"assistantAdminOrFilter`":[
`n        {`"nameValue`":`"*`"}
`n    ],
`n    `"attributes`":[`"description`",`"isAssigned`",`"objectClass`",`"name`",`"path`",`"sysType`"],
`n    `"enumerationOptions`":{
`n        `"includeChildContainers`":true,
`n        `"isSecurityEnum`":true,
`n        `"objectsPerResponse`":1000
`n        }

$response = Invoke-RestMethod 'https://myserver:8755/dra/assistantadmins/get' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json

I can then use the CMDLET Get-DRAAssistantAdminGroupMembers to list the members. Is there no CMDLET to get all assistant admins though? Not a problem per say as I can call the REST API directly but seems odd to me!