cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
romankorchak1
Helper I
Helper I

Find which dynamic group user is in

Hi All

I am building a canvas app where I need to show user different content depending on which dynamic group user is in. 

So the question is - how to find what dynamic group user is in.

I have tried Office365Groups.ListOwnedGroups().value and Office365Groups.ListOwnedGroupsV2().value and Office365Groups.ListOwnedGroupsV3().value but it doesnt show dynamic groups

 

Thanks

 

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @romankorchak1 ,

 

I'm not familiar with dynamic groups, but you may try the Azure AD connector with the get groups of a user action to retrieve all the groups that the user is a member of:

https://docs.microsoft.com/en-us/connectors/azuread/#get-groups-of-a-user-(v2)

 

OnVisible of the Screen:

Set(varGroup,AzureAD.GetMemberGroups(User().Email,true).Value)

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,142)