Conditional Access Problems

How to Fix SharePoint AADSTS53003 Conditional Access Error

Steve KSteve K Nov 4, 2026 868 views

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.

How to Fix SharePoint AADSTS53003 Conditional Access Authentication Errors
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.
Before you start

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.

Solution 1Recommended

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.

1
Access the Microsoft Entra Admin Center

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.

2
Verify Blocked Locations

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.

3
Update Named Locations

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.

4
Configure Service Exceptions

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.

Update Microsoft Entra Conditional Access Policies
Dedicated Accounts Do Not Bypass Policies: Simply switching to a dedicated transfer account will not bypass the block. Conditional Access policies apply to all accounts unless explicitly configured otherwise.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the on-screen prompts to complete the installation in seconds.
  3. 3. Open Your Documents: Double-click any Microsoft Office file on your computer to open, edit, and save it seamlessly within WPS Office.
Completely free and lightweight alternative to Microsoft Office.Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Edit files locally without dealing with complex cloud authentication or Conditional Access policies.Familiar user interface ensuring zero learning curve for seamless migration.
microsoft office alternative - 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.