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
grigri9grigri9 

Using public groups for apex sharing?

I'm offloading my apex sharing logic into groups so instead of creating/deleting sharing records I will be creating the group and then creating/deleting group members as needed.

 

My only concern is that there is some sort of limitation in the group object that I'll start hitting when we have 100,000 groups in our org. Has anyone done something similar?

 

--Greg

grigri9grigri9

I guess no one has tried to do something like this. If anyone is interested in doing this they should know that so far everything seems to be working well. I am able to create/edit a 100,000 groups/group members.

 

The only issue I ran into so far is that public group names can only be 40 characters so if I want to include the record ID or the parent record in the name I only have 20 characters or so to create a meaningful name.

 

 

vasuvasu

Hi All,

 

I want to Create public Group through Apex.

 

Scenario :   I want to Add number roles to One Group.

 

I want to develop component like a Visible to Certain  of Groups in the Create New List View -- Step 4. Restrict Visibility --- Visible to certain groups of users