web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Assign Admin R...
Power Apps
Unanswered

How to Assign Admin Role in PowerApps Based on Azure AD Admin Status?

(0) ShareShare
ReportReport
Posted on by 2

Hi Community,

I am developing a PowerApps application where I need to automatically assign the Admin role to a user only if they are an Admin in Azure Active Directory (AAD). If the user is not an AAD Admin, they should not proceed further in the app.

Current Setup:

  • I have a UserRole table in Dataverse that stores user emails and roles (Admin, User, etc.).
  • My app is not yet published, but once published on AppSource, any customer downloading it should only get the Admin role if they are an AAD Admin.
  • I want to dynamically check if a user is an AAD Admin and then assign the role in PowerApps accordingly.

    Questions:

  • How can I check if a user is an Azure AD Admin inside PowerApps?

  • Can I create and manage AAD Groups directly from PowerApps?

  • What’s the best way to enforce access control if the user is not an AAD Admin?

I want to implement this securely and efficiently, so I’d appreciate any best practices or guidance.

Thanks in advance!

Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You can probably use the Microsoft Graph API there is an Azure connector but it is preview
    If you want to use Active directory for the admin why are you storing roles in a user defined table?
    You can also configure roles in Power Platform Admin.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard