Search code examples
mdmvisual-studio-mac

Visual Studio for macOS Always Prompts to Enrol Mac under MDM


I have Visual Studio Enterprise license issued by my Employer. I am using the MacBook Pro provided by them which is already enrolled for mobile device management with my email id by my employer with Microsoft Intunes Company Portal.

But every time I try to login to my account in VS, I get an error saying Your login was successful but your admin requires your device to be managed by MyEmployer to access this resource.

My device is already enrolled with MDM profile. I reported this issue as a service request in our IT support. But they have no idea of the actual error.

Please let me know if I am doing anything wrong or need additional steps.


Solution

  • Updating to Visual Studio for Mac 8.6 released on May 19, 2020 (today) fixed my issue. Their release notes state the following for Shell. Learn more at this link

    Shell

    Visual Studio for Mac now has new identity libraries that should ease many of the issues that users have faced signing in. In addition, Visual Studio for Mac now supports device code authentication and system browser. You can enable these two options in Preferences should you need them. As a result of the new authentication flow, users who have been signed in previously will need to re-authenticate.