Below are a few troubleshooting steps I would suggest/confirm:
- Azure AD Connect: Do you have Azure AD Connect set up? This would automatically sync your on-prem objects from AD to Azure AD. You can check ity’s health status. - What is Microsoft Entra Connect and Connect Health. - Microsoft Entra ID | Microsoft Learn
- Configure Automatic Enrollment in Intune (what Intune license do you have) - Check the Azure AD P1 or P2 license Azure AD P1 or P2 licenses for all users. This is required for automatic MDM enrollment to work properly.
- Scope - Ensure all users are added onto MDM policy
Note:
WamDefaultSet : ERROR (0x80070520), this error is often due to an issue with the user's primary refresh token (PRT). You might want to check if there are any issues with the user's sign-in or with obtaining a PRT.