Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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.

  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Dynamic row level security

    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

  • mrstian89 Profile Picture
    315 on at
    Re: Dynamic row level security

    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? 

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Dynamic row level security

    @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

     

     

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics