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 / Dynamic row level secu...
Power Apps
Unanswered

Dynamic row level security

(0) ShareShare
ReportReport
Posted on by 315

I have a Power App for inventory in my company. The app is created for several different locations in the company.

This is separated in the Dataverse table by the column "Location".

Is there any way to create dynamic row level security for this?

 

Example: I create two security roles: "Location 1" and "Location 2".

 

In the Datverse table I only want those who have the security role "Location 1" to be able to add/edit data for rows containing "Location 1" in the location column. The same goes for the other security roles. I only want them to be able to add items, loan items and edit items at their own location.

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @mrstian89 

    The only way to achieve this without code is to implement your locations as Business Units and hence then your security role to be configured per business unit.

    https://docs.microsoft.com/en-us/power-platform/admin/security-roles-privileges?WT.mc_id=DX-MVP-5004221

    Mira_Ghaly_0-1634680418802.png

     

     

     

  • mrstian89 Profile Picture
    315 on at

    Thanks for the response! I am quite new to dataverse security!
    How can I make sure that a Business Unit only have access to rows with: Location = Location 1? 

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @mrstian89 ,

     

    As @Mira_Ghaly mentioned.  the Locations you mentioned would be setup as Business Units in the system.  You can then assign users to the specific business units.   When records are created in the business unit they are "in effect" tied to that location.  You would not have a location column on your records but the "Owner" of the record would be assigned to the business unit...  Business Units can Security Roles can work together so you can have some users see across all business units (create, read, update, delete) while other users can be setup (restricted) to a single business unit.  A lot of options exist here...

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/admin/create-edit-business-units?view=op-9-1

    https://docs.microsoft.com/en-us/power-platform/admin/security-roles-privileges 

     

    Hope this helps.  Please accept if answers your question or Like if helps in any way.


    Thanks,


    Drew

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard