# Set up Account driven enrollment for Apple devices

**Account-driven enrollment** is the modern, user-friendly method for enrolling **Apple devices** (Mac, iPhone, iPad) into Hexnode UEM. This process streamlines device setup by allowing end-users to enroll simply by signing in with their **Managed Apple Account** directly in the device’s settings, eliminating the need to download MDM profiles via external links.

Key Benefits and Supported Types 
---------------------------------

This method is highly effective for:

- **BYOD Scenarios**: Easy access to corporate resources from personal devices.
- **Non-ADE Corporate Devices**: Offers a seamless alternative for organization-owned devices not enrolled in Apple’s Automated Device Enrollment (ADE).

Account-driven enrollment supports two primary deployment types:

1. **Account Driven User Enrollment (mdm-byod)**: Intended for BYOD, enabling management of personal devices with privacy restrictions.
2. **Account Driven Device Enrollment (mdm-adde)**: Intended for company-owned devices (Corporate), offering broader management control.

Prerequisites 
--------------

Before setting up **Account-Driven Enrollment** on Apple devices, ensure the following requirements are met.

- **Managed Apple Account**: A **Managed Apple Account** is mandatory for account driven enrollment.
- **APNs Certificate**: Ensure a valid [APNs certificate](https://www.hexnode.com/mobile-device-management/help/apns-settings/) is configured in the Hexnode UEM portal.
- **Profile-Driven Deprecation**: Note that Profile-driven User Enrollment is no longer supported on iOS 18+ devices.
- **Unsupervised Devices Only**: Account-driven enrollment is **not supported** on Supervised devices.
- **OS Version Support**: 
    - **User Enrollment**: Supported on iOS 15, iPadOS 15, macOS 14, and visionOS 1.1 or later.
    - **Device Enrollment**: Supported on iOS 17, iPadOS 17, macOS 14, and visionOS 1.1 or later.

Steps to Perform Account-Driven Enrollment 
-------------------------------------------

### Step 1: Set up Service Discovery (Web Server Hosting) 

Before starting the Hexnode portal configuration, you must prepare the web server to enable [Service Discovery](https://developer.apple.com/documentation/devicemanagement/discover_authentication_servers), allowing the device to find the Hexnode UEM enrollment portal.

#### 1. Process Overview (How Service Discovery Works) 

When a user signs in with a Managed Apple Account (e.g., *john@mycompany.com*):

1. The device extracts the **domain information** (mycompany.com).
2. The device sends an **HTTP request** to the corresponding web server for the enrollment information.
3. The device uses this information to redirect the user to the Hexnode enrollment portal.

#### 2. Configuration Type Choice 

The method depends on the **Account driven enrollment configuration** chosen in Step 2:

- **Self-host**: Requires creating and hosting a JSON file on your web server (details below).
- **Redirect**: When enabled, the devices are redirected to Hexnode’s MDM enrollment service through a redirect URL, eliminating the need to create the JSON file manually. You must copy the URL provided in the Hexnode portal and configure it on your web server.

#### 3. Creating the JSON File (Self-Host Method Only) 

For the device to communicate with the Hexnode UEM server, you must create a JSON file defining the **Version** (enrollment type) and the **Base URL** (Hexnode portal URL):

**For Account Driven User Enrollment (mdm-byod):**

JSON for user enrollment

{ "Servers": \[ { "Version": "mdm-byod", "BaseURL": "https://PortalName.hexnodemdm.com/userenroll/" } \] } 

   1

2

3

4

5

6

7

8

  {

 "Servers": \[

 {

 "Version": "mdm-byod",

 "BaseURL": "https://PortalName.hexnodemdm.com/userenroll/"

 }

 \]

} 

   

 

  

**For Account Driven Device Enrollment (mdm-adde):**

JSON for device enrollment

{ "Servers": \[ { "Version": "mdm-adde", "BaseURL": "https://PortalName.hexnodemdm.com/enroll/" } \] } 

   1

2

3

4

5

6

7

8

  {

 "Servers": \[

 {

 "Version": "mdm-adde",

 "BaseURL": "https://PortalName.hexnodemdm.com/enroll/"

 }

 \]

 } 

   

 

  

Remember to replace PortalName with your organization’s actual Hexnode UEM portal name.

##### Web Server Hosting Requirements 

- You can host the Hexnode UEM enrollment information on any secure web server. 
    - If the verified domain used for Managed Apple Accounts is already configured to host files, you can place the enrollment information there.
    - If the domain is not set up for hosting, you will need to create a web server to store and serve the enrollment information.
- Setting up this server can be tricky. Please ask your company’s web services or IT team for help to make sure it’s done correctly and securely.

#### 4. Requirements for Hosting 

The enrollment information must be hosted on a web server meeting these strict criteria:

- The web server must support **HTTPS GET requests**.
- The web server URL must be in the exact format: *https://company.com/.well-known/com.apple.remotemanagement*
    - “company.com” must match the verified domain associated with the Managed Apple Accounts.
- The **SSL certificate** for the web server must be issued by a **trusted certificate** authority. For a list of trusted root certificates on iOS devices, see [lists of available trusted root certificates in iOS](https://support.apple.com/en-gb/103272) from Apple’s support website.

### Step 2: Configure Enrollment Settings in Hexnode UEM 

1. Login to your Hexnode UEM portal.
2. Navigate to **Enroll > Settings**.
3. Scroll to the **Enrollment Ownership** section and configure the **Apple Enrollment type** based on your **Authentication Mode**: [![Settings for open enrollment in account driven enrollment](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-open-enrollment.png "Account driven enrollment apple - open enrollment")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-open-enrollment.png)
    
    Authentication ModeOwnershipCheck Account driven OptionProfile-Driven Section NoteNo Authentication Corporate and Personal YesN/AEnforce AuthenticationCorporate and PersonalYesFor **Personal** and **Choose while sending enrollment requests**, you can select both Device and User Enrollment under the Account driven section.
[![Settings for authenticated enrollment in account driven enrollment](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-authenticated-enrollment.png "Account driven enrollment apple - authenticated enrollment")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-authenticated-enrollment.png)

5. **Choose Configuration Type**: Under **Account driven enrollment configuration**: 
    1. Select **Redirect** if you are using Hexnode’s generated URL.
    2. Select **Self-host** if you created and hosted the JSON file.
6. **Fallback Discovery**: Optionally enable **Fallback discovery via ABM** (for iOS/iPadOS 18.2+, macOS 15.2+, visionOS 2.2+) to allow devices to contact Apple Business for the MDM server if the primary discovery URL fails.
7. Click **Save**.

#### Configuration Matching is Critical: 

- The domain used in the Managed Apple Account must be **verified and assigned to the MDM server** in Apple Business.
- The enrollment type configured in your Managed Apple Account must match the enrollment type selected in the Hexnode UEM portal. Any mismatch (e.g., Portal set to Device Enrollment, but Apple Business domain set to User Enrollment) will cause the enrollment to fail.

### Step 3: Initiate Enrollment from the Device 

The user initiates the **Account-Driven Enrollment** process directly from the device settings:

1. **On iPhone/iPad**: Navigate to **Settings > General > VPN & Device Management > Sign in to Work or School Account**.
[![Option to sign in to a work or school account on iOS devices](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-Work-or-School-Account-page-iOS.png "Sign in to Work or School Account page - iOS")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-Work-or-School-Account-page-iOS.png)

3. **On Mac**: Navigate to **Settings > General > Device Management > Work or School Account > Sign In**.
[![Option to sign in to a work or school account on macOS devices](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-Work-or-School-Account-page-macOS.png "Sign in to Work or School Account page - macOS")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-Work-or-School-Account-page-macOS.png)

5. Enter the **Managed Apple Account** and tap **Continue**.
[![Option to enter the Managed Apple ID](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Enter-Managed-Apple-ID.png "Enter Managed Apple ID")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Enter-Managed-Apple-ID.png)

7. The device performs service discovery and redirects to the Hexnode enrollment page (with the EULA). Review and click **Enroll**.
[![Page showing EULA and enrollment options](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-EULA-and-Hexnode-enrollment-page.png "Account driven enrollment apple - EULA and Hexnode enrollment page")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-EULA-and-Hexnode-enrollment-page.png)

9. If Authentication is enforced in the portal, the user will be prompted to authenticate; otherwise, the enrollment proceeds.
[![Options for authentication during account driven enrollment](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-Authentication-page.png "Account driven enrollment apple - Authentication page")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-Authentication-page.png)

11. The device prompts the user to sign in to iCloud using the **Managed Apple Account password**.
[![Option to sign in to iCloud for work](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-iCloud-for-Work-.png "Sign in to iCloud for Work")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Sign-in-to-iCloud-for-Work-.png)

13. Tap **Allow** when prompted for **Remote Management**.
[![Option to allow remote management](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Remote-management-page.png "Remote management page")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Remote-management-page.png)

15. The device completes enrollment and the managed account will be visible in the Profile & Device Management section.

[![Screen showing that a device is currently being enrolled using the account driven enrollment method](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-in-progress.png "Account driven enrollment in progress")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-in-progress.png)

[![Device management section displaying the status of account driven enrollment](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-details.png "Account driven enrollment apple - details")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Account-driven-enrollment-apple-details.png)

### Post-Enrollment Verification 

After successful enrollment:

- **User Action (iOS/iPadOS)**: Users will be prompted to install the **Hexnode UEM app**.
- **Admin Action**: The device will be listed in the Hexnode UEM portal under the **Manage > Devices** section. The full enrollment details, including the enrollment type (mdm-byod or mdm-adde), are available in the **Device Summary > Enrollment Details** section.

[![Enrollment Details section of the Device Summary page displaying the type of enrollment ](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Enrollment-type.png "Enrollment type")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2024/10/Enrollment-type.png)