Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Dataverse - Row Level security workaround

(0) ShareShare
ReportReport
Posted on by 879

Hello,

I have a custom employee table that has all the employee's information as below:
Screenshot-2022_2D00_06_2D00_10-000059.png

As you can see above the owner and the creator of the record are my account because I imported these data to the system using my own account.

What I am trying to achieve is the below:

I am trying to find a way to apply row-level security on the records to maintain the security and avoid any employee to see the other sensitive information of a different employee.

Some employees do not have an email ID and for those records, we can keep the creator of the record by a user that has admin access.

I know that we can set a custom security role and assign a permission user-level on the table for the records but as you can see I am the only creator so it will not work that way If I did this configuration.

I thought about a cloud flow that updates the created by field based on the email ID that we are providing in the form since some emails already exist in the user's table in O365 and have a valid license and in that case, it will work.

Maybe another option can be a JS that compares the current user email vs the E-mail field provided in the form and if it doesn't match it will hide the all the elements on the form

What do you think about the above approach? Is there any other good way to achieve this requirement?

Could you please provide an example in case the best option is JS?

Any help is highly appreciated.

Best regards,

  • Suggested answer
    Bipin D365 Profile Picture
    28,961 Moderator on at
    RE: Dataverse - Row Level security workaround

    Hi,

    You should use plugin/cloud flow to update owner of the record based on Email address and then based on security role which is User level access other user will not be able to see other records.

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,296 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,093 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans