Skip to main content

I have a following scenario

User A is at the higher level in the role hierarchy than User B. User A owns the account but User B owns the contact underneath that same account. the sharing model is set to private.

How do I make sure that the account details are not visible to the User B, with B remaining the owner of the contact

@* Release Readiness Trailblazers *
6 comentarios
  1. 17 ene 2014, 10:39

    Naman, in this scenario our sharing engine using something called implicit sharing: if you have access to an account’s child record, you have implicit Read Only access to that account.

    The only way of working round this would be with Visualforce; replace the standard account page with a VF one, and use some controller logic to display the account details based on criteria you define. However, this would still let user B see account details in reports, and using the API if he or she had access to that.

    I'd recommend looking again at what problem is prompting this solution. If user B has access to the contact, and that contact belongs to an account, he or she is going to see the account name anyway, so if you're looking to hide certain details, you should consider profiles, field visibility and criteria-based sharing instead (hit me up if you want to discuss!)