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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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