Forum Discussion
Powershell + AAD
- Jan 26, 2022
Used Get all Azure AD Applications, Permissions and Users using Powershell (morgantechspace.com) to get the users associated with an Enterprise Application, but it just listed the groups
Tweaked it a little bit 😉
ForEach ($group in Get-AzureADServiceAppRoleAssignment -ObjectId 70a91c6d-b43d-4c7d-9e6f-1615656733e9) {Get-AzureADGroup | Where-Object DisplayName -Match $group.PrincipalDisplayName | Get-AzureADGroupMember}
(Edit with your own Enterprise Application object-id of course 😉 )
Used Get all Azure AD Applications, Permissions and Users using Powershell (morgantechspace.com) to get the users associated with an Enterprise Application, but it just listed the groups
Tweaked it a little bit 😉
ForEach ($group in Get-AzureADServiceAppRoleAssignment -ObjectId 70a91c6d-b43d-4c7d-9e6f-1615656733e9) {Get-AzureADGroup | Where-Object DisplayName -Match $group.PrincipalDisplayName | Get-AzureADGroupMember}
(Edit with your own Enterprise Application object-id of course 😉 )