Look in the non interactive logs instead. If , for example, your access to Office 365 was blocked by a CA policy, then that would affect your Graph access.
How to fix "Access has been blocked by Conditional Access policies." in MS Graph
Wesley Oliveira
20
Reputation points
Greetings!
I'm trying to reatrive some e-mails from my mail box using a python code with msallib. As I'm using a personal e-mail I set the auth url as "https://login.microsoftonline.com/common". It was working when my auth url was /{tenant_id}, but since I made this change I keep getting the error bellow whenever I run the app.
'error': 'invalid_grant', 'error_description': 'AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.'
When I look into the sign-in logs, there is nothing in the Conditional Access:
What should I do? I'm losing my hopes...
3 answers
Sort by: Most helpful
-
-
Andy David - MVP 151.8K Reputation points MVP
2025-01-22T14:22:35.65+00:00 How about under Service Principal Logins?
-
Andy David - MVP 151.8K Reputation points MVP
2025-01-22T14:44:59.1066667+00:00 not sure using the /common endpoint is the way here. You said it works with the tenantID?