How to Fix SharePoint AADSTS53003 Conditional Access Error
Question details
Users need to restore access to SharePoint files after an application or script encounters a Conditional Access block upon moving to a new web server location.

- Product
- SharePoint / Microsoft Entra ID
- Device & OS
- not provided
- Scenario
- Migrating a Python application or database to a new web server that requires API access to SharePoint files.
- Observed behavior
- Authentication fails and token issuance is blocked, returning an AADSTS53003 Conditional Access error due to the new server location.
Ensure you have the exact public IP address of your new web server and coordinate with your organization's Microsoft Entra administrator to verify access policies.
Update Microsoft Entra Conditional Access Policies
Work with your IT administrator to whitelist the new web server's public IP address within your organization's Conditional Access rules.
Conditional Access policies often enforce location-based restrictions to protect tenant data. When an application moves to a new web server, its new IP address may fall outside the authorized locations, triggering the AADSTS53003 error.
Have your Entra administrator log in to the Microsoft Entra admin center and navigate to Identity > Monitoring & health > Sign-in logs to pinpoint the exact policy blocking the application.
In the sign-in log details, review the 'Conditional Access' tab to confirm that the block is caused by an unrecognized location or IP address from your new web server.
Navigate to Protection > Conditional Access > Named locations. Click 'New location' or edit an existing allowed IP range to include the public IP address of the new web server.
If modifying the global location is not preferred, edit the specific Conditional Access policy to explicitly grant access to the application's service principal or dedicated transfer account from that IP.

Need a Hassle-Free Local Document Solution?
While resolving complex SharePoint and Entra ID network policies, you can easily manage, edit, and share your documents locally using WPS Office. It is a highly compatible, free alternative to Microsoft Office that doesn't rely on restrictive cloud access configurations.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install WPS Office: Run the setup file and follow the on-screen prompts to complete the installation in seconds.
- 3. Open Your Documents: Double-click any Microsoft Office file on your computer to open, edit, and save it seamlessly within WPS Office.

Frequently Asked Questions
What does the AADSTS53003 error code mean?
The AADSTS53003 error indicates that authentication has been blocked by your organization's Conditional Access policies. This typically happens when signing in from an unauthorized network location or an unmanaged device.
Can I bypass Conditional Access by using a different SharePoint account?
No. Using a different user account or a dedicated transfer account will not bypass Conditional Access rules unless the Microsoft Entra administrator explicitly configures an exception for that specific account.
How do I find out which Conditional Access policy is blocking my application?
Your Microsoft Entra administrator can find this information by checking the Sign-in logs in the Entra admin center. The logs will display exactly which Conditional Access policy resulted in the failure.




