Skip to main content
Community site session details

Community site session details

Session Id : GW/0XY9Pd0VVV0Pc1bhiiP
Power Apps - Building Power Apps
Unanswered

Hide a button based on Azure AD security group

Like (0) ShareShare
ReportReport
Posted on 24 May 2023 16:12:44 by 134

Hi,

 

I am building an app with a screen that only one Azure AD security group should have access to. I need to be able to hide the button that navigates to that screen when other users outside the security group are using the app. I have tried using the CheckMemberGroupsV2 and PowerApps gives me a warning that it is unsupported and I haven't been able to find any other documentation for a more updated function to use. The only code that has worked so far is to hard code each email of the user that is in the app, but I would like to not have to change the security group in Azure AND the code in the app every time someone is removed or added to the security group.

 

Thanks!

  • SebS Profile Picture
    4,204 Super User 2025 Season 1 on 24 May 2023 at 16:19:21
    Re: Hide a button based on Azure AD security group

    @LS579 

     

    Check this approach with using MS365 Security Groups hope it helps

     

    Implementing Tier Security using MS365 Security Gr... - Power Platform Community (microsoft.com)

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1