Android MDM setup

Experimental feature. This feature is undergoing rapid improvement, which may result in breaking changes to the API or configuration surface. It is not recommended for use in automated workflows.
Android MDM features are currently behind a feature flag. To enable them, set ANDROID_FEATURE_ENABLED=1
in your server configuration.
This guide provides instructions to turn on Android MDM features by connecting Fleet to Android Enterprise.
to Fleet.
Fleet supports Android devices that are Play Protect certified (previously known as GMS).
Turn on
To turn on Android MDM, connect Android Enterprise on Settings > Integrations > Mobile device management (MDM) page.
When you select Connect Android Enterprise, Fleet will open the Google signup page. The signup process varies depending on whether your organization uses Google Workspace, Microsoft 365, or another provider. Organizations using Google Workspace and Microsoft don't need to verify domain ownership.
Google Workspace
- If your organization already uses Google Workspace, use your admin account to signup for Android Enterprise. If you don't know your admin account credentials, ask your Google Workspace admin.
- Follow the steps in Google's signup flow.
- After successful signup, a free Android Enterprise subscription is added to your Google Workspace. In Fleet, you can confirm Android MDM is turned on in Settings > Integrations > MDM.
- Head to your Google Admin console.
- From the side menu, select Devices > Mobile & endpoints > Settings > Third-party integrations.
- Select Android EMM, check Enable third-party Android mobile management, and then select Manage EMM providers.
- Toggle Authenticate Using Google switch for your Android Enterprise, select the cross icon in the top left corner, and select Save.
Microsoft 365
- If your organization uses Microsoft 365, you can use your Microsoft email to signup for Android Enterprise. After you select Connect Android Enterprise, select Sign in with Microsoft. Your Microsoft account must have access to an email.
- Follow the steps in Google's signup flow.
- After successful signup, a free Android Enterprise subscription is added to your Google Workspace. In Fleet, you can confirm Android MDM is turned on in Settings > Integrations > MDM.
- Go to your Google Admin console.
- Follow these steps to verify your domain name. This way, only you can use your domain to sign up for Google Workspace.
Now you have managed Google domain with an Android Enterprise subscription. Optionally, if you want to add additional subscriptions later (i.e. Google Workspace) you can use this domain. Only the free Android Enterprise subscription is required for Android MDM features.
Add users from Microsoft to Google Workspace
To require your end users to enroll to Fleet using their Microsoft accounts, follow steps below:
- In Google Workspace, from the side menu, select Devices > Mobile & endpoints > Settings > Third-party integrations.
- Select Android EMM, check Enable third-party Android mobile management, and then select Manage EMM providers.
- Toggle the Authenticate Using Google switch for your Android Enterprise, select the cross icon in the top left corner, and select Save.
- From the side menu, select Directory > Directory Sync and select Add Azure Active Directory to sync users from your Microsoft 365 to Google Workspace. Now, your end users can enroll with their Microsoft account.
- Select Continue, add name and description, and then select Authorize and save.
- In popup window, login with your Microsoft account, select Consent on behalf of your organization, and select Accept.
- When you see the Connection successful page, select Continue. On the directory sync details page, select Set up user sync.
- Enter the names of the groups that you want to sync from Microsoft 365, select Verify, and select Continue.
- Now choose organizational unit to add users to by selecting Select organizational unit button and then Continue.
- You can keep default user attribute mapping. Select Continue, Don't send activation email, and Continue.
- Keep Suspend user in Google Directory checked and select Continue
- Keep default safeguards. Select Simulate sync and, after successful simulation, select Close. The sync can take up to the hour to complete.
- In the dialog, select Activate and start sync.
Other
- If your organization doesn't use Google Workspace or Microsoft 365, in the Google signup page, use a work email to signup for Android Enterprise (don't use personal emails like "@gmail.com").
- After you enter your email, you'll get a verification email. Open the link from the email.
- Enter information about you and your company and select Continue.
- You'll see your free Android Enterprise subscription will be selected. Select Next.
- Enter a password for your account and select Agree and continue.
- Select Allow and create account on the next screen.
- You'll be asked to log in with your account that you just created and confirm your phone number.
- After successful login and phone verification, you'll be redirected to Fleet. In Fleet, you can confirm Android MDM is turned on in Settings > Integrations > MDM.
- Follow these steps to verify your domain name. This way, only you can use your domain to sign up for Google Workspace.
Now you have managed Google domain with an Android Enterprise subscription. Optionally, if you want to add additional subscriptions later (i.e. Google Workspace) you can use this domain. Only the free Android Enterprise subscription is required for Android MDM features.
Turn off
- In Fleet, head to Settings > Integrations > MDM.
- In the Mobile Device Management (MDM) section, select Edit next to "Android MDM turned on."
- Select Turn off Android MDM
When you turn off Android MDM, your Android Enterprise will be deleted, and MDM will be turned off
on all hosts. The work profile from all BYOD hosts is deleted.