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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,512)