SOLVED

Powershell + AAD

Copper Contributor

Hi,

I would need advice/help for my problem.

I have 1 Enterprise application. Members of that EA are cloud-only groups (over 100 groups).

Is there anyway I can get list of groups using powershell (users/members) who are members of that Enterprise application?

KR,

Dino

1 Reply
best response confirmed by Dino_Vo (Copper Contributor)
Solution

@Dino_Vo 

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 

 

Harm_Veenstra_0-1643227183070.png

Tweaked it a little bit ;) 

Harm_Veenstra_2-1643227721946.png

 

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 ;) )

1 best response

Accepted Solutions
best response confirmed by Dino_Vo (Copper Contributor)
Solution

@Dino_Vo 

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 

 

Harm_Veenstra_0-1643227183070.png

Tweaked it a little bit ;) 

Harm_Veenstra_2-1643227721946.png

 

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 ;) )

View solution in original post