Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Check if user exists in an sub group of a main group


I am currently using this logic below to check if a user is a direct member in a group or not and navigating screen as per. This is working fine if the user is a direct member of the group.

If(currentUser in Concat(Office365Groups.ListGroupMembers("GroupId").value,Lower(mail)),Navigate(FormScreen1,ScreenTransition.Fade),Navigate('Restricted Screen',ScreenTransition.Fade))


But here is the thing, Let's say Group X is having members as Group X1 and Group X2.  Current user who access the App is not a direct member in Group X but a member in either Group X1 or Group X2 but still needs to access the App. Same logic above is not working as expected. Can some one help me how to do this?


Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,543)