Windows Integration Errors

Fix Azure AD SSO Error AADSTS700016 for Salesforce Sandbox

Huda QurayshiHuda Qurayshi Nov 20, 2026 868 views

Question details

The user needs to resolve an Azure AD application-not-found error when signing in to Salesforce Sandbox with SSO.

Fix Azure AD SSO Error AADSTS700016 for Salesforce Sandbox
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.
Before you start

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.

Solution 1Recommended

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.

1
Check the sign-in request

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.

2
Find the application

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.

3
Correct the tenant or app configuration

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.

4
Check assignments and consent

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.

Verify the Entra tenant and Salesforce Sandbox application
Check the application first: A sandbox username suffix does not by itself establish the cause of AADSTS700016. The error commonly points to an incorrect application ID, tenant, or missing application.
Free Microsoft Office alternative

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.

Document SSO troubleshooting steps and configuration checksOpen and edit Microsoft Word, Excel, and PowerPoint formatsWork with a familiar, easy-to-use interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

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.