"Invalid code" during Web Enrollment – Personally-owned Work Profile (Intune + AM API)
Hi everyone,
We use Microsoft Intune and Android Enterprise to manage Android devices.
We have encountered a problem. We have switched to the Android Management API (AM API) and now want to enrol personally-owned devices with a work profile via Web Enrollment.
After signing in to the Company Portal, the device starts to create the work profile, but then displays the message 'Invalid code', after which the enrolment process stops. The ADB logs show an HTTP 403 response with FAILURE_REASON_ENROLLMENT_TOKEN_INVALID.
In Intune, everything looks normal: the Managed Google Play connection shows 'Success', and there are no errors. We have also opened a case with Microsoft Support, but unfortunately we are not making any progress.
Has anyone encountered this issue before or knows what could be causing it?
Thanks in advance!
