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

Owner of a Many-to-Many Relationship?

We have an object that has 2 Master-Detail relationships, but are having trouble providing editing by standard users.  Is there any way to control the owner of a many-to-many relationship using Sharing Settings?




The "owner" is the user which owns either record, and you can't change this behavior. You'll have to depend on the default sharing features of the system. When you configure a master-detail relationship, you can choose to have sharing based on read-only or read-write permissions of the parent objects.

Jia HuJia Hu


Considerations for Relationships:   Many-to-Many Relationships


Sharing access to a junction object record is determined by a user's sharing access to both associated master records and the Sharing Setting option on the relationship field. See Custom Object Security. For example, if the sharing setting on both parents is Read/Write, then the user must have Read/Write access to both parents in order to have Read/Write access to the junction object. If, on the other hand, the sharing setting on both masters is Read-Only, a user with Read-Only rights on the master records would have Read/Write access to the junction object.