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

Notifications

Announcements

No record found.

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 905

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,

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans