Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Restricting a record based on a relationship on associated logged in contact

Hi to give some background we have accounts that have "product restrictions" 


which means we don't want to show certain products to contacts associated with those accounts as an example


Contact logged in owned by Account A (no restrictions) can see all products
Contact logged in and owned by Account B (has 3 restricted products) - this user should not see any products they are restricted for

can this be achieved? 

Super User
Super User

Hi @Justin365 ,

yes, i do this in some projects. The key to this answer are ParentChild Permissions.

Basically, you define over a relation, what things are visible. In your case, there is either a direct relationship between accounts and products or you create a table, which maintains the relations. I usually do the latter one. So i create a table (an entity) which points to the account and to the product, which should be visible. For each product you have one entry in that table.

Then i create a tablepermission read for that table in accountscope to read all entries which habe the account of the contact. 

Then i create a Prental scoped permission on a product selecting the former created permission as a parent and allowing products linked to this entity (table) beeing visible. This should do the job.


Does this sound resolving your issue? If not ping me, may be i can explain a little more with an example.


Have fun,


Ah, and the accounts beeing able to read all products should be given a role containg a tablepermission global to read all products 🙂

Super User
Super User

@Justin365 please let us know if Christian's solution solved your problem or you need any further help with this

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Pages Super User | MVP

Oliver Rodrigues


Helpful resources

Carousel Community Blog

Check out the Community Blog

Read all about the most recent blogs in the community!

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Carousel News & Announcements

What's New in the Community?

Check out the latest News & Events in the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,507)