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
pooja biswaspooja biswas 

Restrict access of user with higher role

Hi
I have userA who has sysadmin profile and role=Project Manager.
Another userB who has role=CEO and some profile.

Now userA creates a few records and these are automatically shared with userrB because he has a higher role.
Now I want to restrict access to userB to only READ, I want to prevent him from having EDIT/DELETE/SHARING options.

Is this possible? Please let me know.

Thanks
Pooja
 
Nitin SharmaNitin Sharma
Hi Pooja,

You can achieve this functionality only for custom object . 
To control sharing access using hierarchies for any custom object, from Setup, enter Sharing Settings in the Quick Find box, then select Sharing Settings. Next, click Edit in the Organization Wide Defaults section. Deselect Grant Access Using Hierarchies checkbox.

Thanks,
Nitin Sharma
pooja biswaspooja biswas
Hi
can we achieve the above functionality for an standard object

Thanks
pooja
Nitin SharmaNitin Sharma
Hi,

It is not possible for standard objects.  

Thanks,
Nitin sharma