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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,203)