How to fix AADSTS53003 Access has been blocked by Conditional Access policies. The access policy does not allow token issuance

Yongsheng Tian 20 Reputation points Microsoft Employee
2025-02-06T10:36:38.1833333+00:00

Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.microsoft.aad.msal4j.MsalInteractionRequiredException: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. Trace ID: 78cc8d76-4bf0-4b1a-8981-b7e9e54aaa00 Correlation ID: acac177e-5a11-4471-8f0a-0a933562900a Timestamp: 2025-02-06 10:06:02Z

I use secretclient to get token to access objectstore in itellij idea, but got this problem, few weeks ago it is ok, but today I got this exception. I try to submit my job to mt-flink platform and it work, but not work in my IDE any longer, is getting token from IDE has been forbidden?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,180 questions
0 comments No comments
{count} votes

Accepted answer
  1. Akhilesh Vallamkonda 11,680 Reputation points Microsoft Vendor
    2025-02-08T04:30:16.4133333+00:00

    Hi @Yongsheng Tian

    Adding to Andy David - MVP Based on the error code 53003, Your sign-in was successful but does not meet the criteria to access this resource and the access has been blocked by Conditional Access policies which is set by the organization.
    As discussed, and reviewing the details of your tenant, you don't have enough roles to check the logs and change the Conditional Access policies, kindly reach the global admin of the tenant and inform that you are getting blocked by Conditional Access policies, so the admin can help you on this issue.

    Hope this helps. Do let us know if you any further queries by responding in the comments section.

    Thanks,

    Akhilesh V.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 152.3K Reputation points MVP
    2025-02-06T14:57:28.8833333+00:00

    Your tenant has a Conditional Access policy blocking this:

    Access has been blocked by Conditional Access policies.

    Check the sign in logs in Entra to see which one(s)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.