Skip to main content

I have 100+ teams and a custom object.

I need to configure security so that for example only members of team A can see records from other members of the same team.

 

Do I need to create 100+ sharing rules manually, is there a more direct way or another workaround?

 

Thanks

 

#Security  #Salesforce Platform  #Record Visibility

2 respuestas
  1. 22 feb 2022, 23:26

    There are many ways that you could implement this

    One of the options is to create queues in the system for each team and add team members to the respective queue. 

    Use Automation to Make the Queue, record owner, and all queue members from the respective team would be able to access the records that the queue owns.

     

    The good thing is There's no limit to the number of queues you can create, and you can choose when queue members receive email notifications.

     

    The other way is to use Apex-based sharing. You would want to maintain the list of teams in the system in a custom object myObj_Team__c and use Apex to create a share the records with all the members that are part of a team.

     

    Please mark this answer as Best Answer if this resolves your issue.

    Also, Let me know in case you need more clarification.

0/9000