question

Vsree avatar image
0 Votes"
Vsree asked JamesHamil-MSFT answered

Error AADSTS53000 raised after migrating from AAD graph api end point to Microsoft graph api.

Hi

I'm trying to migrate my application from AAD graph api to Microsoft graph api endpoints. I get an error on the below line

string graphResourceId = "https://graph.microsoft.com/";
AuthenticationResult authResult = await authContext.AcquireTokenByAuthorizationCodeAsync(code, new Uri(appRedirectUrl), credentials, graphResourceId);

error raised:

AADSTS53000: Device is not in required device state: compliant. Conditional Access policy requires a compliant device, and the device is not compliant. The user must enroll their device with an approved MDM provider like Intune.

"interaction_required"

thanks,
VSree

azure-ad-app-registrationazure-ad-graph-deprecation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, we are investigating your issue and will update you shortly.

Best,
James

1 Vote 1 ·

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered

Hi @Vsree , this is an issue with your conditional access policy somewhere. This document details how you can check this. Please see if this applies to your environment and let me know.

Thank you,
James


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.