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 Apps / Role Based access to s...
Power Apps
Unanswered

Role Based access to screens in power apps

(0) ShareShare
ReportReport
Posted on by 90

I am Working on Employee Promotion Process in my Canvas power App In a dataverse table i Have Employee table which has records of Eligible employees For Promotion .

I  have 3 roles  Admin, Nominator(3 level,Nominator1,Nominator2,Nominator3) , and Approver (3 levels, Approver1,Approver2,Approver3),

If Nominator1 Selects Few Employees for Promotion, 

SO if Nominator2 logsin the app he should she employees nominated by Nominnator1

and if Nominator3  logsin the app he should she employees nominated by Nominnator2 only

 

And if Approver1 logs in he should she list of employees nominated at level 3 ,

And if Approver 2 logs in he should see only list approved by Approver1 and 

Approver 3 should be able to approve or reject or review submitted by both Approver 1 and Approver 2

 

how do I get different access in a single canvas app 

like if any level of nominator logs in the app he should not see screens or actions what Approvers is doing 

And Admin can have access to all nominator levels and approver levels

 

please help how to I achieve this as this is my first project with data verse tables

 

 

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Nida_Sayedi - assuming you have actually set up Security Roles for these users, you can use Power FX expressions to identify what Security Role the logged user has been assigned.

     

    For example, you can initialise a Global Variable on the OnStart property of your App to validate if the logged in user has been assigned a specific role:

     

    Set(
     hasAccess,
     With(
     {
     userRole: Distinct(
     LookUp(
     Users,
     'Primary Email' = User().Email
     ).'Security Roles (systemuserroles_association)',
     Name
     )
     },
     "System Administrator" in userRole
     )
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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 Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard