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
certi_vimalcerti_vimal 

Users should not be able to manual share their records with Roles/Roles and Subordinates

Customer wants that when a user goes to grant access to another user via Manual Sharing, they should not have option to share with Roles and Roles-Subordinates. The users should only be able to share with another users. 


I know from the standard out-of-box Salesforce Page for Sharing, we cannot remove these options from the left-hand side palette.


However, can we have some customized APEX trigger or some sort of validation which will not allow users to share their records with Roles/Roles and Subordinates?


Please advise.



Thanks,


Vimal

spraetzspraetz

No, I don't believe this is possible.  You cannot create triggers on the __share objects.