---
title: Unlocking a macOS device
slug: device-management-apple/unlocking-a-macos-device
createdAt: 2026-10-06T07:47:38.636Z
---

While it is possible to lock a macOS device from the User Portal, you cannot unlock a macOS device from the User Portal. Instead, unlocking a macOS device requires entering an unlock passcode on the device when prompted. The passcode can be found in the MDM logs for the macOS device, which are listed in the Admin Portal. The procedure is almost identical for unlocking wiped macOS devices.

For wiped macOS devices, you can push the Ivanti EPMM MDM profiles back to the device following recovery.

**Important:** The Unlock command clears passcodes and TouchIDs from the managed device, compromising device security. Never user this feature on lost or stolen devices.

**Procedure**

1. In the Admin Portal, go to <font color="#323232">Devices &amp; Users &gt; Devices</font>.
2. Go to the locked or wiped macOS device and select the carat (^) next to it.
3. In the device details, select <font color="#323232">Logs</font>.
4. A list of device logs is displayed.
5. Select <font color="#323232">MDM Log</font>.
6. The mobile device management log is displayed.

::Image[]{src="https://api.archbee.com/api/optimize/V3jJx_afLEcmDauLTrzss/OX0414e6wzhMWvp6kHKkh_osxdeviceunlockorunwipe.png" alt="Mobile device management log." caption="Mobile device management log." position="flex-start" size="100" width="1233" height="515" initialPath="../Resources/Images/osxdeviceunlockorunwipe.png" githubPath="Device Management Guide for Apple/Resources/Images/osxdeviceunlockorunwipe.png" darkWidth="1233" darkHeight="515" showCaption="true" indent="1"}

7. Find the <font color="#323232">Lock</font> or <font color="#323232">Erase Device</font> action in the <font color="#323232">Action</font> column.
   Alternatively, you can search for the relevant action by selecting a date range and the name of the action from the <font color="#323232">Actions</font> drop-down list on the left.
8. Make note of the corresponding PIN associated with the lock or wipe action.
   The PIN is located in the <font color="#323232">Detail</font> column.
9. When prompted, enter the PIN on the macOS device you are trying to unlock.

:::hint{type="info" indent="1"}
If the macOS device has been locked and wiped, you must enter the corresponding PIN when prompted in the order that the actions occurred. For example, if you locked the device, and then wiped it, you would need to enter the lock PIN when prompted on the macOS device, follow the on-screen instructions, and then enter the wipe PIN when prompted.
:::

10. For wiped devices:
    1. Retire the macOS device.
    2. Re-register the macOS device. Alternatively, instruct the user to register the device again.
