Fix Azure AD SSO Error AADSTS700016 for Salesforce Sandbox
Question details
The user needs to resolve an Azure AD application-not-found error when signing in to Salesforce Sandbox with SSO.

- Product
- Microsoft Entra ID (Azure AD) and Salesforce Sandbox
- Device & OS
- not provided
- Scenario
- Users with Salesforce Sandbox usernames ending in a sandbox suffix attempt to sign in using single sign-on.
- Observed behavior
- The SSO attempt fails with AADSTS700016, indicating that the application was not found in the Azure directory.
Have a Microsoft Entra administrator and a Salesforce Sandbox administrator available. Capture the error's application ID, tenant information, timestamp, and correlation ID without sharing credentials or secrets.
Verify the Entra tenant and Salesforce Sandbox application
Use the application ID and tenant from the error to find a missing application or a request sent to the wrong directory.
On the AADSTS700016 error page, record the application ID and tenant named in the message. Confirm that the sign-in URL points to the Microsoft Entra tenant intended for the sandbox.
In the Microsoft Entra admin center, switch to the intended directory and open Identity > Applications > Enterprise applications. Search for the Salesforce Sandbox application, then compare its application ID with the ID in the error.
If the application is missing or the IDs differ, check the SSO configuration that generated the request and select the correct tenant and application. If needed, add or configure the Salesforce Sandbox enterprise application according to the Salesforce and Microsoft setup guides.
Open the enterprise application's Users and groups page and verify that the affected user or group is assigned if assignment is required. Review any required permissions and administrator consent for the application.

Review Salesforce Sandbox SAML settings
Use this check when the application exists in the correct tenant but the sandbox SSO configuration may be using production settings or mismatched endpoints.
Use WPS Office for Your Office Documents
WPS Office is a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for easier migration. It does not repair Azure AD or Salesforce SSO configuration.

Frequently Asked Questions
What does AADSTS700016 mean?
It means Microsoft Entra ID could not find the specified application in the directory handling the sign-in. Check the application ID in the error against Identity > Applications > Enterprise applications in the intended tenant.
Does the sandbox username suffix cause this error?
Not necessarily. First check whether the SSO request uses the correct tenant and application ID. Do not remove the sandbox suffix solely to address the error.
Where can I check the Salesforce Sandbox reply URL?
In Microsoft Entra admin center, open the sandbox enterprise application and go to Single sign-on > SAML > Basic SAML Configuration. Compare the Reply URL and Identifier with the Salesforce Sandbox setup requirements.
What should I provide when asking for help?
Provide the application ID, tenant information, timestamp, and correlation ID from the error or Entra sign-in logs. Do not include passwords, access tokens, or other secrets.




