web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to restrict access...
Power Apps
Unanswered

How to restrict access to records based on the field values in the records?

(2) ShareShare
ReportReport
Posted on by 36,383 Super User 2025 Season 2

I have a requirement to restrict access to Dataverse records based on the field values in the records. Could someone advise the best approach for this?

 

The use case scenario is that I have a table of participants for an event, managed by a school/college. This table stores the personal details of people, including a date of birth.

 

To comply with data protection and safeguarding rules, the requirement is that only teachers/employees with correct vetting should be able to access records in the table that pertain to people that are less than 18 years of age. All app users in the organisation must be able to access records in the table that relate to adults who are 18 years or older.

 

My initial thought is to set up a child business unit for app users with restricted access. The users with full access would belong to the parent business unit. Whenever an app user adds or edits a record, I would run a Power Automate flow to modify the owner of the record to an arbitrary user in the appropriate business unit. I would also run a daily flow to modify the owner of records where the participant reaches 18 years of age. Alternatively, I could apply the same methodology, but using a teams structure instead.


The thing that concerns me is the level of automation that this would involve. Am I completely missing an obvious or more easy approach to do this? Is there a way to do this without calling flows, or could someone suggest alternate strategies to fulfil this requirement? Many thanks!

 

I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @timl ,

     

    You aren't completely missing anything.  There is not a simple approach that I know of here to accomplish this.  I would actually go down the same path you are on and maybe investigate Access Teams as well but since this is a hard requirement I would lean to the business unit approach personally.

     

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


    Thanks,

     

    Drew

  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hi @timl,

     

    Please try using PLUGIN to achieve this,

     

    When a Page gets loaded (Home Page Grid) system will trigger Retrieve Multiple Message, so we can use this message to show the records based on your requirement.

     

    rampprakash_0-1629811313245.png

     

     

    Link for your reference https://carldesouza.com/dynamics-365-retrievemultiple-plugin/

     

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @dpoggemann - Thanks for verifying that this isn't a simple requirment and that you would agree with the Business Unit/Flow method.

     

    Thanks also @rampprakash for suggesting the plugin approach which would also be viable.

     

    I'll see if anyone else has any further suggestions and I'll mark your posts as answers.

  • Verified answer
    Prakash4691 Profile Picture
    1,332 on at

    Hi @timl ,

     

    I prefer OOB using business unit. Since, it involves restricting access depends on field value my suggestion would be,

     

    Create two custom owner teams, one for age below 18 years another for above 18 years. Add teams members to the respective teams.

     

    Using update/create plugin, change owner of the field to the respective team.

     

     

    Regards,

    Prakash

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Thanks everyone for your input

    @Prakash4691 - yes, that's a good point about using plugins to change the ownership, which will reduce the number of Flow runs.

  • FD-05031135-0 Profile Picture
    19 on at

    Very interesting scenario. I am facing something similar regarding tasks of projects, in which the records should only be seen by the project manager and the user assigned to the task (consultants). 

    I am thinking of creating a different application for consultants and creating a custom page for them. Any feedback about this approach? 

     

    Thanks,

    Regards

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard