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
buggs sfdcbuggs sfdc 

how many sharing rules and public groups assigned to a particular Role?

HI 

Can anyone help me out qurerying how many sharing rules and public groups assigned to a particular Role?
Nitin Wader 21Nitin Wader 21
Sharing rules limit is not role or public group wise but it is at object level.
Object level limit is 300 sharing rules per object and 50 criteria based sharing rules. So total = 300 + 50 = 350 overall per object.
buggs sfdcbuggs sfdc
HI 

Thanks for the quick reply.
I wnated to know how many sharing rules and public groups assigned to a particular role?we have any query?
Nitin Wader 21Nitin Wader 21
Arch. Diagram


See this archt. diagram.

There is Share object for each object.

Construct your query in such a way that GroupID = [Objectshare].GroupID

and then get the count.

This will give you how many sharings are there on particular group /user.

Hope this will give you some what rough idea.

Thanks,