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

Announcements

News and Announcements icon
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 173
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,621 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard