function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kabukabu 

parent and child sharing

How can I setup something  so that the user has access to only child and not parent records? I can use apex to create sharing or config.
Suppose user1 has access to Account and wanted to restrict on contact/oppertunity records. so that these child records are not visible to user1.

User2 has access to contact/opportunity but don't want to provide access Account record.

I am using customobjects  and Master/detail relationship already exists and cant change it. so looking for options.

Please let me know if there is a workaround.
Vish Nagaraju1Vish Nagaraju1
You can remove user1 profile access to child object. That would work.