Hi there,
I have two Dataverse tables which I need to create a relationship between.
The first table lists user roles for one of our legacy systems, and includes the permissions within each role, and whether or not the permissions are sensitive so let's say...
| Role | Permission | Sensitive permission |
| Customer Rep | Create a new purchase | |
| Customer Rep | Edit a purchase | Yes |
| Customer Rep | Delete a purchase | Yes |
| Manager | Override purchases | Yes |
| Manager | View purchases | |
I then have another Dataverse table which lists all of the users and the roles they hold. What I want is, if the user holds the role of say, Customer Rep, for the Contains Sensitive? field to be updated like below on this other DV table. So, basically, for the column to lookup on the other dataverse table any row where the Role held as the same as role, and display back Yes in the below in Contains sensitive? if any of the permissions within that role on the other table are Yes for Sensitive permission
| User | Role held | Contains sensitive? |
| User1 | Customer Rep | Yes |
| User2 | Manager | Yes |
| User3 | Cleaner | No |
| User4 | Clerical | No |
I don't know where to begin here. There are hundreds of roles and some permissions are repeated across roles (e.g. Manager holds the same permissions as Customer Rep, plus other permissions some of which are and aren't sensitive)
Please help with where I can begin. This is to then display the information in a model driven app.
Thanks
K.