Replies: 1 comment
-
|
If you use the Beta command for grabbing the RoleDefinitions it will return additional properties, including the "isPrivileged" property:
For example (ID's redacted): This avoids the extra call to Get-MgBetaRoleManagementDirectoryRoleDefinition and then you can build your $reportLine object as follows: Also, instead of adding a second roleDefinition NoteProperty with a different property name, you can just overwrite the existing one returned by the first call with the -Force parameter: Instead of: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Originally sourced from https://github.com/michevnew/PowerShell/blob/master/AADRolesInventory-Graph.ps1
Beta Was this translation helpful? Give feedback.
All reactions