# Renew an expired ADE token when Hexnode sync adds 0 devices

Executive summary
-----------------

Hexnode uses the ADE server token from Apple Business to sync corporate-owned Apple devices assigned to the Hexnode MDM server. When this token expires, Hexnode cannot fetch the assigned ADE devices, and a manual sync may return 0 newly added devices. Renewing the token in Apple Business and uploading it to the existing ADE account in Hexnode restores the connection required for device synchronization.

Symptoms
--------

- A manual ADE sync in Hexnode adds 0 devices.
- The ADE account already exists in Hexnode, but assigned devices do not populate after sync.
- The ADE token associated with the account is expired.

Cause
-----

The ADE token has expired. This token authorizes communication between Apple Business and Hexnode. Once expired, Hexnode cannot successfully retrieve devices assigned to the device management server in Apple Business.

Renew ADE Token
---------------

### Step 1: Apple Business Portal

1. Log in to **[Apple Business](https://business.apple.com/)**.
2. Select **Devices** from the top banner.
3. On the left side of the page, select **Management Services** and click the required server name under **Device Management Services**.
4. Click the **ellipsis icon (…)** in the upper-right corner.
5. Click **Download Token**.
6. When the dialog box displays *“Downloading a new server token will reset your existing one,”* click **Download server token**.

### Step 2: Hexnode Portal

1. Log in to the **Hexnode portal**.
2. Navigate to **Admin > Automated Device Enrollment > Accounts**.
3. Move the cursor to the right end of the server name and click **Edit**.
4. On the **Edit ADE Account** page, click **Choose File** next to **Upload Token**.
5. Select the newly downloaded server token file.
6. Click **Save**.
7. Run **ADE sync** again to fetch the devices assigned to the Hexnode MDM server.

 Note: 
Downloading a new server token from Apple Business resets the existing token. Upload the newly downloaded token to the corresponding ADE account in Hexnode before syncing devices again.

 

 
What to verify after renewal?
-----------------------------

- The ADE account in Hexnode shows an active token.
- The correct device management server is selected in Apple Business.
- The target devices are assigned to the Hexnode MDM server in Apple Business.
- A manual sync successfully pulls the assigned Apple Business/ADE devices into Hexnode.