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

New users created in production must be created in our FULL Sandbox

I was wondering if anyone has any starter code that can satify the following use cases.
  1. When a new user is created in production that user must also be created in the full sandbox.
  2. When an existing user in production is de-activated they must be deactivated in the full sandbox.
  3. When an existing user in production is activated they must be activated in the full sandbox.
  4. When an existing user in produciton has their profile, license, etc. changed the change must occur in the full sandbox.

I was playing with the concept of exporting the user data from production daily and upserting to TEST but I had some issues when I was working with that a few months ago.  I was hoping for a more dynamic approach with API calls to the Sandbox for example.

Anyone else needing something along these lines?  Anyone have any jump start ideas/code?

Hi , 

I do not think this is possible via Code, 

You may try scripting ANT , but not sure if that has an option to check the changes and only deploy those changes to a Sandbox Org. 

Also post an Idea on the Idea exchange.