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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Security table permiss...
Power Pages
Answered

Security table permissions based on contact that could be related to many accounts

(2) ShareShare
ReportReport
Posted on by 20
Hello !
 
I am working on a Power Pages Portal and I am facing a challenge regarding Power Pages security roles in my current dataverse configuration. We want to support many to many relation between contacts and accounts, so we have created a new table "Contact Account Authorization". Now we have another table called "Projects" and we want let authentified users to see only projects related with his accounts (our table many to many), the project table has the link with the account table.
 
We tested permissions on "Project" table using account level but this is not working, Is there a other way to achieve this? maybe also reading rule in dataverse using a plugin ?
 
Thanks 
ER-relation-dataverse.png
Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at
    Table Permissions with scope = Account, means the Contact record is linked to the Account using the out of the box parent account /company.
     
    You will need to establish a set of table permissions that use scope = parent for the respective table relationships (in the designer these are called child permissions, but in the Power Pages Management app you will see they have scope = parent).

    edit: you should be able to do a Table Permission with scope = Contact for the Contact Lookup on Contact Account Authorization, then a table permission with scope = Parent for the relationship between Account and Contact Account Authorization, and then another Table Permissions With scope = Parent for Account to Project.
     
  • aofosu Profile Picture
    105 on at
    I have a similar situation, but mine is a little bit complex. Realize that when you follow @Fubar's approach, it allows a single contact to traverse through the permissions to get to the Project table like this Contact -< Contact Account Authorization -< Account -< Project.
     
    @Fubar I would like to pick your brain on this solution:
     
    In my case, the client wants contacts belonging to one account to collaborate on a project. I proposed the following:
    1.  Use the OOB parent organization, which allows contacts to belong to one account.
    2.  Have a bridge table on Account called Authorized Account
    3.  Connect the Authorized Account to the Submission table so that partner organizations can submit data on behalf of their delegatees.
     
    Then again, the client wants a contact who belongs to an account to belong to another account where they can collaborate with the contacts under that account. My answer to them was that that user would need to create another user profile for that account. With your expertise in this area, what would you suggest? I would like to know if I am missing anything or if there is an alternative way to do this where a contact can belong to more than one parent account. 
     
    Thank you!
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at
    @aofosu key thing to remember is that the access is granted based on the relationships between records, so to give access or remove access you need to be able to add/remove a record in a way that will break the relationships path to the target record. I would create a link table between the Project and the Contact e.g. "Authorised Project Contact" - would have a lookup to Contact, Account, and Project (the account lookup is just so you can show it against the account, the permissions are for the Contact and Project).
     
    Table permissions 
    • Authorised Project Contact: scope = Contact
    • Authorised Project Contact -< Project: scope = Parent
    (note: account is intentionally not in the scopes above)
     
    You then have to manage the adding/removing of the Contact e.g. subgrid on Account. The Account itself does not give permissions it is just there so you can display the record against specific accounts.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard