iPhone and iOS enrolment error company portal
During iOS company portal enrollment the following error might present;
"your account can't be enrolled with this retired method"
This is something that happened recently, most likely due too some change from Microsoft side.
It happens when you use "user enrollment" for your enrollment type profile
I found this page Set up user enrollment with Company Portal for iOS - Microsoft Intune | Microsoft Learn , which seems to point to that this enrollment type is deprecated and no longer working.
The solution is to edit your enrollment type profile and transition to another enrollment type, account-driven user enrollment instead as it matches the old user enrollment most closely