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
nasreen shaik16nasreen shaik16 

Is there any way to restrict a role(such as manager) from viewing the subordinate records. I as admin should share records through criteria based sharing. How can i restrict his manager(role) from viewing those records

Surya GSurya G
Hi Nasreen,

For this requirement, I suggest making owd as private and disable grant access using hierarchies. That means, only the record owners can view the records. Later you can use criteria based sharing to grant access to specific users.

Thanks
Surya
 
nasreen shaik16nasreen shaik16
Disabling the grant access hierarchy is applicable only for custom object. What if its for standard objects.
Surya GSurya G
Sorry Nasreen. Unfortunately, we cant edit grant access hierarchy for standard objects. As default it will be enabled. Usualy, for this kind of scenario, admins go with custom object model.
nasreen shaik16nasreen shaik16
Thank you so much Surya G.