When readng through trailhead salesforce I came across a line which I am unable to digest. The line says - "You can’t set profile object permissions for a detail record". What does this mean? In my free developer org, I went to setup->profile->any one profile->Custom object permission, Is that where I should be looking to understand this?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
This refers to objects which are related by the master detail relationship. In case of such relationships we have two objects - parent ( usually referred as Master) and child(referred as detail). When a master detail relationship is created, all the security features that are applied on the parent(Master) object are inherited by the child(Detail) object. For eg: if a user has certain set of permissions on parent object then he will have same set of permissions on child object. You cannot specify the permissions for child object.
I hope I am able to clarify your question.
I think I figured out what this statement meant. I think it meant - The permissions for being able to create, edit or delete a child record depends on permissions set on master object.
If you have "read" permissions on Master object, you can go ahead and set read, create, edit and delete permissions on Child object.
If you dont give "read" permissions on Master object, then you wont be able to give any permissions on child object.
I tried below in my dev org.
Scenario 1: I had read permissions on Master object and read, create, edit and delete on child object.
Now i tried giving read and create permissions on child object, with no permissions on master object.
Thus, from the above, i can say, what salesforce states is correct. You need to provide atleast read permission on master object for being able to set permission on child object.(Which indirectly means- "You can’t set profile object permissions for a detail record.")
I'm wondering if they mean that you can't set the profile object permission for the master field on the detail record. I am looking at a Profile at a Custom Object that is the detail (Line Items) to the Master record Invoice. I cannot modify the access to the field that relates to the Master Invoice as seen in this image, the field is grayed out and checked since it is required by default as noted in the Trailhead unit.
It might also be an error, you should submit your question as feedback on Trailhead.
Added 2 screenshots -> one with and one without the enhanced profile editor. (Click on Setup -> Profiles -> One of your Custom Profiles -> Object Settings or Scroll Down to Custom Object Permissions... Also note that I have Enabled Enhanced Profile User Interface under Setup -> User Interface)