A cloud-based identity and access management service for securing user authentication and resource access
Hello @Muhammad 'izzat Mohamad,
Thank you for posting your query on Microsoft Q&A.
Based on your description, I understand that when attempting to log in to your developed application using a Microsoft Entra ID user on an Android device, you are encountering an error stating: "Set up your device to get access." Please refer to the attached screenshot for clarity.
This error typically occurs when your organization has a Conditional Access (CA) policy that requires a compliant device. To identify such a policy, log in to the Azure Portal and navigate to: Microsoft Entra ID → Security → Conditional Access → Policies. Here, review the list of policies that enforce a requirement for a compliant device. Please refer to the attached screenshot for better understanding.
According to the CA policy, the application can only be accessed if the authentication is performed on a compliant device. If the device you are using is not enrolled with Microsoft Entra ID, encountering this error is expected behavior.
To resolve this issue, you have two options:
- Enroll your device with Microsoft Entra ID using Microsoft Intune.
- Exclude your developed application from the CA policy to bypass the compliant device requirement.
You can follow the Microsoft documentation below to enroll your device with Entra ID using Microsoft Intune: Enroll Android device with Microsoft Intune.
For more details about the error message, you can refer the below documents.
https://www.reddit.com/r/Intune/comments/122egro/android_enrolled_device_set_up_your_device_to_get/
https://www.anoopcnair.com/enroll-devic-intune-conditional-access-policies/
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Thanks,
Raja Pothuraju.