Scenario: Let's assume that the Customer has a dedicated Team ("Tiger Team") who would like to manage a specific type of Opportunities on a need basis with the caveat that:
To address the request, we follow a 3-step process:
Let's have a flag created on the User object which identifies a User as a Tiger Team Member:
We then set up a Flow automation which automatically adds or removes Tiger Team members from the Public Group when the "Tiger Team Member?" field on a User record is checked or unchecked. This ensures proper data visibility for users and avoids any accidental exposure of data.
Overall design of this Flow:
To add a Group Member, the Group ID and User or Group ID variables are passed as parameters in the Flow:
Overall design of this Flow:
Respective Flow screenshots:
With the above combination of Sharing Rule and automated Flow, you can provide specific team members access to Opportunity without modifying roles or providing superior profile access.
Note: The above flow designs can be optimized into a single flow as desired. The approach here is just an inference on the concept that can be used to automate this.
Written by: Manoj Nambirajan | Salesforce MVP. Manoj is a Salesforce Enterprise Architect at Dell Technologies with more than 15 years of experience in the Salesforce ecosystem. Manoj has exceptional leadership abilities and a flair for solving issues quickly. Accredited as a Salesforce MVP, Manoj has 17 Salesforce certifications and is among the Top 10 Answers leaders in the Trailblazer Community.
Submissions reflect only the opinions of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain or constitute products, services, information, data, content and other materials made available by or on behalf of third parties ("Third Party Materials"). Salesforce neither controls nor endorses, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality, legality, usefulness or safety, or any applicable intellectual property rights. Any Submissions made available through any message board or forum in response to posted questions, or that otherwise purports to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never be relied upon as answers to your specific questions (even if an answer is marked as a "best" answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions, and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.
If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer-community/feed
000683671

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.