Forum Discussion
Shaun Jennings
Mar 10, 2020Iron Contributor
Azure AD Privileged Access Report
I am currently trying to write an ad hoc report to report on privileged access membership. When I run the report, the Company Administrator reports incorrectly. But when I try to run the report on ju...
Shaun Jennings
Mar 11, 2020Iron Contributor
VasilMichev Thank you for the reply.
That still does not answer why I am getting an invalid list for the Company Administrator role. I know there is one security principle there and two User accounts. But when I run the script, it returns six user accounts.
VasilMichev
Mar 11, 2020MVP
As I cannot see the output, I cannot tell you why. But the error message you are getting hints for the same - you are trying to runt he Get-AzureADUser cmdlet against an object that is not an user, as simple as that.
- Shaun JenningsMar 12, 2020Iron Contributor
Thank you for that reply. On the output, it is giving a list of people for Company Administrator that are not assigned to that role. I only have two people in the role but when I run the script it places six people having been assigned that role.