Last Updated on February 5, 2025 by Rakesh Gupta
Big Idea or Enduring Question:
-
How do I automatically grant sandbox access to a group of people upon creation or refresh?
Objectives:
After reading this blog, you’ll be able to:
- Understand how to streamline sandbox access management.
- Automate the process of granting sandbox access to a group of users after sandbox creation or refresh.
- And much more!
Business Use case
Sophia Reed is a Sr. System Administrator at Gurukul on Cloud (GoC). She refreshes sandboxes once every quarter. After each refresh, granting access to the sandbox is a time-consuming and redundant process. She recently learned that Salesforce has launched new features that can make her life easier.
What she wants is to automatically grant sandbox access to a public group named DevBiz Collaborators as soon as a sandbox is refreshed or created.
What Are Salesforce Sandboxes?
Salesforce Sandboxes are isolated environments that allow developers, administrators, and testers to build, test, and deploy changes without affecting the production org. These environments are essential for ensuring that new features, configurations, or integrations are thoroughly validated before being rolled out to end-users.
Uses of Salesforce Sandboxes
- Development: Build and test new applications or features.
- Testing: Conduct quality assurance, user acceptance testing, stress, and performance testing.
- Training: Train users without risking production org data.
- Integration: Test external system integrations safely.
By using Salesforce Sandboxes, organizations can maintain the integrity of their production org while innovating and adapting to business needs.
Why the Old Sandbox Access Method Falls Short
Before diving into Selective Sandbox Access, let’s take a moment to understand the challenges with the old approach and why Salesforce introduced this new feature.
By default, when a System Administrator creates or refreshes sandboxes, all active users in the source organization automatically gain access to the sandbox. However, only the user who creates the sandbox retains their email address in its original format (without the .invalid appended to it).
This means the System Administrator is tasked with removing the .invalid suffix from users’ email addresses, waiting for them to verify their updated email, and resetting their passwords if needed. Moreover, granting sandbox access to all active production users, even those who don’t need it, further complicates the process.Â
Unlocking the Power of Selective Sandbox Access
Formative Assessment:
I want to hear from you!
What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? Feel free to share in the comments below.



