When a Salesforce sandbox is refreshed from a production environment, the Single Sign-On (SSO) configuration using SAML (Security Assertion Markup Language) is partially carried over to the refreshed sandbox — but not fully. Specifically, SAML settings are automatically disabled in the sandbox after a refresh because the Recipient URL is updated to match the new sandbox URL assigned by Salesforce.
If your production org uses SSO, users will not be able to log into the refreshed sandbox via SSO immediately after the refresh. The SAML settings must be reconfigured before SSO access is restored in the sandbox.
This article explains what SSO settings are copied during a sandbox refresh, what changes automatically, and what steps are required to re-enable SSO access in the refreshed sandbox.
When a sandbox is refreshed, the following behavior applies to SSO (SAML) settings:
If the sandbox administrator cannot log in due to SSO being disabled, an admin in the production org can reset the sandbox user's password:
000385851