Activation Lock Bypass Code
Get the code to bypass Activation Lock on a device.
URL
PUT https://yourmdmhost.example.com/mdm#ActivationLockBypassCodeCommandResponse Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/xml | ActivationLockBypassCodeResponse | The response object the system returns for the Activation Lock Bypass Code Command. |
Mentioned in
Discussion
This command allows organizations to retrieve the device’s bypass code. Organizations can use the bypass code to remove the Activation Lock from supervised devices prior to device activation without knowing the user’s personal Apple Account and password.
Supervised devices generate a device-specific Activation Lock bypass code. The activation server verifies this code to bypass Activation Lock on the device. For more information, see Creating and Using Bypass Codes.
A device creates a new bypass code when:
Setting up the device the first time.
Erasing and not restoring the device from a backup.
Erasing and restoring the device from a backup from a different device.
Command availability
Device channel | iOS, macOS, visionOS |
User channel | NA |
Requires supervision | iOS, macOS, visionOS |
Allowed in user enrollment | NA |
Required access right | NA |
Example request and response
HTTP Body
The request object the server returns for the Activation Lock Bypass Code Command.