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 in M...
Power Apps
Unanswered

Role based access in Model driven apps.

(0) ShareShare
ReportReport
Posted on by 2

Hi, I have been trying to implement role based access in model driven apps. I have tried it with security roles but the problem is that all the data is imported into the app by a single user and the owner field is occupied by a that users value. Is there any other way to implement it. For eg. by extracting current users email ID and matching it with the email field in the table. if it is possible please do tell how its achievable.

 

Thank you.

 

I have the same question (0)
  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @Sarvesh_A,

     

    You have two options to do this:

    • Use custom code to define how a form is displayed based on information in the entity, e.g. read-only if the email address in one field does not match the email address of the current user.
    • Change the owner of the rows inside the table programmatically: You could build a flow, for example, that looks up the user account in the "User" table based on the email address, and then assigns the row by changing the "Owner" field to this user. I would suggest using this approach, because once you have set the owner correctly, the standard role based access model can be used.
  • Sarvesh_A Profile Picture
    2 on at

    Thankyou for the response @joe_hannes_col .

     

    I'll try it out.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard