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 Automate / How to check PowerApps...
Power Automate
Suggested Answer

How to check PowerApps logged in User's environment role?

(1) ShareShare
ReportReport
Posted on by 163
Hello - How to check PowerApps logged in User's environment role? I am currently assigning roles to various colleagues whenever they log into the app for the first time. I want to build a flow to run on Start of the app to check the user's current environment role to see if it they have all necessary roles or not. 
 
If not then i want to navigate the user to a page that tells them to request access to app so that they can get all the correct roles before they start using the app.
Categories:
I have the same question (0)
  • Suggested answer
    Robu1 Profile Picture
    1,459 Super User 2025 Season 2 on at
     
    Thank you for choosing Microsoft Power Platform Communities.
     
    To achieve this in PowerApps, you can follow these steps:
     
    Retrieve the User's Environment Role

    Use the Power Platform Admin Center to manage and retrieve user roles. You can access the roles assigned to a user by navigating to:
     
    Environments > Settings > Users + Permissions > Security Roles
     
     
    Check out these helpful links
     
     
     
    To address your requirement for a flow,
     
    Build a Flow to Check Roles:
    Use Power Automate to create a flow that runs when the app starts.
     
    The flow could:
    -Query the Dataverse table or API to check the user's assigned roles.
    -Return the role information to PowerApps.
     
    Navigate Based on Role
    In PowerApps, use the flow's output to determine if the user has the necessary roles.
    If the user lacks the required roles, navigate them to a page with instructions on how to request access. You can use the Navigate() function in PowerApps to achieve this.
     
    Request Access Page
    Create a form in PowerApps where users can request access. This form can trigger another flow in Power Automate to send an email or update a Dataverse table with the request details.
     
    If you have any further questions or need additional assistance, feel free to ask!
     
    Happy to help,
     
     
    Robu1 | Microsoft Community Super user & Moderator  

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard