+ Start a Discussion

Validation on Manual Sharing of Private Record -- Possible??

Hi All,

I have a requirement here , can anyone help me ??

Custom Object : Name - "Test Object"
Sharing Setting : Private
Manual Sharing : Enabled (By displaying custom button on the Page Layout)

Users are allowed to share the records with "Role A and its subordinates" as and when required , but should be prohibited to share the records with "Role B and its subordinates". 

Can we add some sort of capability that prohibits user from giving access to anyone apart from "Role A and its subordinates" ?
Raj VakatiRaj Vakati
That you cannt do it with valition rule.. but you can do it with the trigger .. 

Write an trigger on object and get the sharing casue and see 

Refer this links