1

I have created custom object in MD relationship and set the master to private . when I Tried to applied sharing rule on Master . It is not effective on child object.

does sharing applied to child object in OWD Settings ?

  • Access for all child and grandchild records in Master-Detail relationship is driven by parent record's access. – o-lexi Mar 8 '17 at 15:18
1

On the relationship field itself you can specify if read or edit access on parent is required to edit child. Sharing will apply, but subject to the definition in the relationship field.

So if relationship field says edit on parent is needed to edit child, and your sharing rule only grants read access, then the user will not be able to edit child.

See this article on custom object security for more details. Re edit access, it says:

“Edit” permission and either read or read/write access to the related master record, depending on the value of the Sharing Settingattribute of the master-detail relationship field on the detail object.

If it's a junction object there is a primary relationship and a secondary relationship, and there is some implication there that I need to look up as I don't recall the specifics.

Update - the primary and secondary relationship does not impact record access. It is the combination of sharing settings on both m/d fields that controls access to junction object records. See this post for details.

0

From Salesforce docs,

When a custom object is on the detail side of a master-detail relationship with a standard object, its organization-wide default is set to Controlled by Parent and it is not editable.

If you've got a Master-Detail between two custom objects, I think they have their own sharing settings.

EDIT: For custom object Master records, the sharing should apply to the Detail record. Do you have access to "View All Data" like an admin access?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.