/errors/exchange-online/aadsts53003-connect-exchangeonline
Connect-ExchangeOnline: AADSTS53003: Access has been blocked by Conditional Access policies
- tool
- Exchange Online PowerShell
- versions
- ExchangeOnlineManagement 3.x
- os
- windows, linux, macos
AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. is a Microsoft Entra ID sign-in error, not an Exchange error. Connect-ExchangeOnline asked Entra ID for a token, the sign-in matched a Conditional Access policy whose result is "block", and no token was issued. The fix is in the policy or in where you sign in from, not in the PowerShell command.
Microsoft's AADSTS reference lists the code as BlockedByConditionalAccess - Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.
Find the policy that blocked you
- Sign in to the Microsoft Entra admin center with a role that can read sign-in logs (for example Reports Reader or Security Reader).
- Go to Monitoring and health > Sign-in logs and filter on the account and the time of the failure.
- Open the failed sign-in (error code 53003) and select the Conditional Access tab. It lists every policy that was evaluated and which one returned "Failure".
The policy's conditions (users, target resources, device platform, location, client apps) tell you why your sign-in matched.
Typical fixes
| Policy requires | What to do |
|---|---|
| Block from untrusted locations | Connect from a named or trusted network, or through the corporate VPN |
| Compliant or hybrid joined device | Run PowerShell on a managed device that meets the policy |
| Block for specific client apps or platforms | Use a supported client; the module signs in with modern authentication (MSAL) |
| Block for the account | Use the admin account the policy is meant for, or ask for an exclusion |
Related sign-in errors
AADSTS50076: multifactor authentication is required. InteractiveConnect-ExchangeOnlineprompts for it;-Credentialcannot complete MFA.AADSTS53000: the policy requires a compliant device and this one is not.AADSTS700016: the app ID used with-AppIdwas not found in the tenant.
The AADSTS error codes table explains the codes most often seen from admin modules.