An organisation-owned iPhone, iPad or Mac that comes back from a leaver still locked to someone's personal Apple Account cannot be reactivated, redeployed or resold until the lock is cleared, and clearing it is only straightforward if the groundwork was laid when the device was enrolled. Activation Lock is a theft deterrent that ties a device to an account on Apple's activation servers. In a managed fleet it should protect the organisation's hardware rather than strand it. This guide is for Apple and device management administrators: it explains organisation-linked and user-linked Activation Lock, bypass code escrow, the role of Apple Business, a leaver and returns process, and how to recover locked devices you own. It does not cover removing locks from devices your organisation does not own.
This is an independent guide from NHI Mgmt Group, based on Apple's public documentation as of November 2026. It is not sponsored or reviewed by Apple. Product features change, so confirm settings against Apple's current documentation.
Key takeaways
- Register devices in Apple Business before first use. Apple Business can turn off Activation Lock only on devices that were added before the lock was enabled and have not been released.
- Prefer organisation-linked Activation Lock. Apple describes it as managed server-side by the device management service, independent of the user or device state, with the service creating its own bypass code.
- Escrow bypass codes early and back them up. On iPhone and iPad the device-generated code is available for up to 15 days after supervision, or until the service retrieves and clears it; miss that window and it cannot be retrieved.
- Turn off the lock before you release. After a device is released from Apple Business, Activation Lock can no longer be managed there.
- Macs need supervision. Activation Lock management on macOS requires Apple silicon or the Apple T2 Security Chip and a supervised device; a lock set before supervision has to be removed by the user.
How Activation Lock works
Activation Lock is enforced when a device activates. In Setup Assistant, after Wi-Fi selection, the device requests an activation certificate from Apple's activation server; Apple's Platform Security guide states that Setup Assistant on iOS, iPadOS and visionOS will not progress without a valid certificate. On a Mac with Apple silicon, the boot chain requires a valid LocalPolicy and boots to recoveryOS to obtain an activation certificate if one is missing; on a Mac with the T2 chip, the T2 firmware requires a valid activation certificate before macOS boots. Erasing the device does not remove the lock, which is the point.
On an unsupervised iPhone, iPad or Mac, Activation Lock turns on automatically when the user signs in with a personal Apple Account and turns on Find My. An unsupervised Apple Watch follows the paired iPhone. With the lock on, turning off Find My or erasing the device needs the account password; on iPhone and iPad the previously used passcode is also accepted at reactivation. After an erase, an iPhone shows "iPhone Locked to Owner", and a Mac shows an Activation Lock screen naming the linked account in partly masked form.
For supervised devices, Apple's Platform Security guide states that Activation Lock is disabled by default. The device management service can then either allow users to turn it on and escrow a bypass code, or turn it on server-side with a unique 31-byte bypass code it generates. For the broader trust chain behind this, see Apple Platform Security Explained.
Lifecycle at a glance
| Stage | Activation Lock action | Owner | Evidence to keep |
|---|---|---|---|
| Purchase | Buy through Apple or an Authorised Reseller or carrier linked to your Apple Business account so devices appear automatically | Procurement | Order and serial numbers in Apple Business |
| Enrolment | Assign to your device management service; device is supervised via Automated Device Enrollment | Device management team | Assignment record, supervision status |
| First 15 days (iPhone, iPad) | Service retrieves and stores the device-generated bypass code | Device management team | Code present in escrow, backup date |
| In use | Organisation-linked lock on, or user-linked lock allowed only by policy | Device management team | Policy setting per device group |
| Leaver or repair | Device collected; lock cleared via service or Apple Business before erase | IT asset team with HR trigger | Ticket, lock status before and after |
| Disposal or sale | Lock off, device erased, then released from Apple Business | IT asset team | Release activity, sanitisation record |
Managed versus personal Apple Accounts
Apple's deployment guide distinguishes two kinds of Activation Lock on organisation-owned devices:
| Aspect | Organisation-linked | User-linked |
|---|---|---|
| Requires | Apple Business or Apple School Manager and a device management service | A personal Apple Account signed in with Find My; a Managed Apple Account does not create it |
| Who turns it on | The device management service, server-side | The user, where the service allows it |
| Bypass code | Server-generated by the service | Device-generated, must be retrieved and escrowed by the service |
| Turn off in Apple Business | Yes | Yes |
| Turn off from an external device management service | Yes | Use Apple Business, the stored bypass code or the user's credentials |
If both methods are used, Apple states that the first successful Activation Lock event takes precedence. Managed Apple Accounts belong to the organisation, so they are the natural choice for corporate devices. User-linked lock tends to appear when staff sign in with personal accounts on supervised devices that permit it, or on Macs enrolled after the user turned on Find My. Apple Business, launched on 15 April 2026 in place of Apple Business Manager, holds the device record that makes recovery possible. Its admin roles and tokens are covered in Apple Business Manager Security.
Decision guidance
- Corporate-owned, single user: Use organisation-linked Activation Lock through the device management service. It protects the device if it is stolen and needs no cooperation from the leaver.
- Shared, kiosk or classroom devices: Keep user-linked lock disallowed. See the Kiosk and Shared Device Security Guide.
- Allowing user-linked lock: Only where the service has already escrowed the device bypass code, and with a documented leaver step to clear it.
- Small organisations: The built-in device management in Apple Business, or a single third-party service, is enough; the key control is registering every purchase so Apple Business can clear locks.
- Large or multi-tenant organisations: Standardise on one escrow location, restrict who can turn off Activation Lock, and plan code export before any device management migration.
Bypass codes and MDM
Apple's developer documentation, Creating and using bypass codes, says a device management service needs to store two codes:
- Device-generated bypass code: Retrieved with the Activation Lock Bypass Code query; the service keeps it until it receives a different, non-empty code from the device.
- Server-generated bypass code: Created by the service when it starts Activation Lock.
Points from Apple's documentation that matter operationally:
- Order of operations: The service must request the bypass code before the device enables Activation Lock; otherwise the user may lock the device first and the code will not work.
- State is uncertain: A service cannot tell which code is active, or even whether the device is locked, because a user can erase the device and remove the lock with their credentials. Apple states that the device's
IsActivationLockEnabledvalue can report false positives and false negatives, so try both codes. - Unlock request: The service submits the bypass code as the
escrowKeyin an HTTPS POST to Apple's escrow unlock web service, authenticating with its APNs certificate, with the serial number, product type and, for cellular devices, IMEI and MEID values. Dual-SIM devices need both IMEIs or the request fails. - Audit fields: The request carries an organisation name and a
guididentifying the person requesting removal, so make your service record the real requester rather than a shared account. - Protect the codes: Apple's deployment guide says to secure the bypass codes and back them up regularly.
Where identity fits
Bypass codes are long-lived secrets that unlock hardware, and the APNs certificate and device management service token that use them are machine credentials. Treat them as such: store codes encrypted with restricted read access, log every retrieval and unlock, rotate service tokens on staff changes, and name an owner for the APNs certificate so its renewal does not lapse. If the service changes, Apple says to either obtain a copy of the existing codes or have the previous service clear Activation Lock on all enrolled devices first. See the Secrets Management Guide.
Offboarding and returns
Most stranded devices come from leavers whose personal account locked a company device, and from devices released or wiped before the lock was cleared. A leaver process that works:
- Trigger from HR: The leaver record in your joiner-mover-leaver workflow opens a device return task listing every serial number assigned to the person. See the Employee Offboarding Security Guide.
- Check status before collection: In Apple Business, Devices > Inventory shows Activation Lock status under the device details. Record it in the ticket.
- Ask the user to sign out while they still can: If a personal account is present, have the leaver sign out of their Apple Account and Find My on the last day. It is the cleanest removal.
- Clear the lock centrally: Otherwise turn it off from the device management service or, in Apple Business, select the device, choose More, then Turn Off Activation Lock, and confirm. The action cannot be undone and creates an activity record.
- Erase and confirm: Erase the device. Apple notes that the device may still show the lock after Erase All Content and Settings or Apple Configurator, but can be set up without the previous user's sign-in.
- Redeploy or dispose: For redeployment, reassign in Apple Business. For sale, recycling or loss, turn off Activation Lock first, then release the device.
Two Apple Business details to build into policy. First, do not release devices that are going to Apple for repair, because a replacement will not appear in Apple Business. Second, device management services can release devices without a sign-in by default; turn that option off for services that do not need it. Released devices can be added back with Apple Configurator or through the reseller or carrier, but must be erased and restored.
Recovering locked devices
Recovery options for a device your organisation owns, in the order to try them:
| Situation | Recovery route | Notes from Apple's documentation |
|---|---|---|
| Device registered in Apple Business, not released | Turn Off Activation Lock in Apple Business | Works for organisation-linked and user-linked lock, and for Lost Mode set by the user; needs the role permission to remove Activation Lock |
| Organisation-linked lock | Clear from the device management service | Service uses its server-generated code |
| iPhone or iPad with escrowed code | Enter the bypass code in the Apple Account password field and leave the username blank | Try the other code if the first fails |
| Mac with escrowed code and physical access | At the Activation Lock screen open Recovery Assistant and choose Activate with MDM key | Enter the bypass code |
| Mac locked before supervision | The user turns off the lock | The service cannot clear it |
| Service cannot clear the lock | Confirm codes were stored; include both IMEIs; escalate to the service developer | Apple also suggests the credentials of the account that created the service token |
| Not registered and no code | Follow Apple's How to remove Activation Lock support process | Apple directs unregistered devices to this route or to the service developer |
One case in Apple's documentation: Apple Vision Pro devices bought before June 2024 cannot have an active lock turned off in Apple Business unless the user turns it off first.
Detection and measurement
- Registration coverage: Percentage of active Apple devices present in Apple Business, target close to 100 per cent.
- Escrow coverage: Supervised devices with a stored bypass code, checked within 15 days of enrolment.
- Locked returns: Returned devices found locked at intake per month, and the share recovered within five working days.
- Release hygiene: Releases performed while Activation Lock was still on (target zero).
- Privileged actions: Turn Off Activation Lock and release activities in Apple Business, reviewed against tickets.
Framework mapping
| Framework | Reference | How Activation Lock management supports it |
|---|---|---|
| NIST SP 800-53 Rev. 5 | AC-19 Access Control for Mobile Devices | Supervision and lock policy for mobile devices |
| NIST SP 800-53 Rev. 5 | CM-8 System Component Inventory | Apple Business device inventory as the source of truth |
| NIST SP 800-53 Rev. 5 | PS-4 Personnel Termination | Device return and lock clearance in the leaver process |
| NIST SP 800-53 Rev. 5 | MP-6 Media Sanitization | Erase and release before disposal |
| NIST CSF 2.0 | ID.AM-01, ID.AM-08, PR.PS-03 | Hardware inventory, lifecycle management, removal commensurate with risk |
| ISO/IEC 27001:2022 Annex A | 5.11 Return of assets; 7.14 Secure disposal or re-use of equipment | Leaver returns and disposal |
Common failure patterns
- Buying outside Apple Business: Devices bought from retail channels not linked to the organisation cannot be cleared in Apple Business, leaving proof of purchase as the only route.
- Missing the 15-day window: Enrolment completes but the service never retrieves the device-generated code, then a user turns on Find My.
- Releasing before clearing: A device sold or recycled while locked becomes unusable for the buyer and comes back as a dispute.
- Migrating device management without the codes: The old service is retired before codes are exported or locks cleared.
- Personal accounts on Macs before enrolment: The user turned on Find My before supervision, so only the user can remove the lock.
- Shared admin accounts: Turn Off Activation Lock is performed under a shared login, so the audit record does not show who did it.
Practitioner checklist
- Link every reseller and carrier account to Apple Business so all purchases are registered before first use.
- Enrol all corporate devices with Automated Device Enrollment so they are supervised.
- Choose organisation-linked Activation Lock as the default; allow user-linked only by exception.
- Confirm your service retrieves and stores both bypass codes, within 15 days for iPhone and iPad, and back them up.
- Limit the Apple Business roles that can turn off Activation Lock or release devices, and use named accounts.
- Turn off release without sign-in for device management services that do not need it.
- Add "check and clear Activation Lock" to the leaver checklist before erase.
- Clear the lock before releasing any device for sale, recycling or loss, and never release devices sent for repair.
- Export codes or clear locks before migrating device management services.
Standards and references
- Apple: Platform Deployment, Activation Lock on Apple devices
- Apple: Platform Security, Activation Lock security
- Apple Developer: Creating and using bypass codes
- Apple: Turn off Activation Lock in Apple Business
- Apple: Release devices in Apple Business
- Apple: Platform Support, Protect a device with Activation Lock
- Apple Newsroom: Introducing Apple Business
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: Apple Platform Security Explained · Apple Business Manager Security · iOS and iPadOS Enterprise Security Guide · Joiner-Mover-Leaver Guide