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 / Power apps security wi...
Power Apps
Unanswered

Power apps security within the App

(0) ShareShare
ReportReport
Posted on by 202

Hi All 

 

Iam kindly requesting for assistance of how I can restrict users from accessing Specific Data within a Power app.

 

  • I have an application used to capture different incidents and each have a form :

 a) injury on duty Incidents -Form 1

 b) health & safety Incidents -Form 2

 c) criminal Incidents -Form -3

 d ) vehicle   Incidents -Form-4 

 

  • We have different branches Like Pretoria ,Polokwane and Waterfall branches etc. .
  • We have a Risk officer for each of these branches and is responsible for logging any incident that occurs on site  and on specific forms .

 

  • The risk officer from Pretoria Branch must be able to only create ,view ,edit Pretoria Branch  incidents only .Also the Risk officer can only capture on 3 forms a,b,c and not the vehicle incidents form (d  .

The admin user can see all incidents from all branches ,capture incidents for all branches ,see all forms -create ,edit view and even delete 

 

From my side I have SQL tables that I have created to try and achieve this then link them per user 

1. I have a user table 

2.I have a  roles table

3.I have the branches table  

4.I have  the  form types table  

 

To share the app I have created a group callled AppCapture, Iam then adding users to the group then that user has access to the app 

 

My question/ challenge  is in Power apps when a user logs into the app it functions in a way  that user Robin Mars from Pretoria bakery can only work on incidents for  Pretoria Branch incident , create ,view and  Edit on form AB and not DC and belongs to the Risk officer role.

 

  Any ideas are welcome I have tried a few things but Iam not winning?

Different forms.PNGDifferent sites or branches.PNGSites available with the app.PNGModel Concept.PNG

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    I would getxhvthe current logged in user as the first step with something like this:
    Set(currUser, LookUp(Users, Email = User().Email))

    I would do that in the OnStart property of the app.

    I would then fetch the branch and role of that user and store them in global variables. Then use these variables to control data that populates dropdowns or other controls.

    Let me know if this approach makes sense.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • rodzmaz81 Profile Picture
    202 on at

    Hi 

     

    I have tried and number of things and it has not been working so Iam thinking let me go through this whole process and give you a break down of what I have tried ;

     

    Perhaps if you can give me guidance on the  Point below its will be a great start but let me dev on my side as well and keep you posted on what I have done ;

     

    1. I would then fetch the branch and role of that user and store them in global variables. Then use these variables to control data that populates dropdowns or other controls

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard