<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 6.0.0 -",
    "tvOS: 10.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/AppLock",
  "metadataVersion" : "0.1.0",
  "role" : "Device Management Profile",
  "symbol" : {
    "kind" : "Device Management Profile",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "mdm-profiles:AppLock"
  },
  "title" : "AppLock"
}
-->

# AppLock

The payload that configures a device to run a single app.

```
object AppLock
```

## Discussion

Specify `com.apple.app.lock` as the payload type.

With an app lock profile, the device locks to the specified app until removal of the profile. The device returns to the app automatically upon wake or restart.

Only use an app lock payload after installing the target app.

### Profile availability

|||
|--------------------------|----------------------|
|Device channel            |iOS, Shared iPad, tvOS|
|User channel              |N/A                   |
|Allow manual install      |iOS, tvOS             |
|Requires supervision      |iOS, tvOS             |
|Requires user-approved MDM|N/A                   |
|Allowed in user enrollment|N/A                   |
|Allow multiple payloads   |N/A                   |

### Profile example

```plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>App</key>
            <dict>
                <key>Identifier</key>
                <string>com.apple.mobilenotes</string>
            </dict>
            <key>PayloadIdentifier</key>
            <string>com.example.myapplockpayload</string>
            <key>PayloadType</key>
            <string>com.apple.app.lock</string>
            <key>PayloadUUID</key>
            <string>dc0c6fdd-aae0-4fd0-a19c-861ba28f4c55</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
        </dict>
    </array>
    <key>PayloadDisplayName</key>
    <string>Single App Mode</string>
    <key>PayloadIdentifier</key>
    <string>com.example.myprofile</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>736f867e-3972-4889-aa68-7ce5be12eff6</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>
```

## Topics

### Objects

[`AppLock.App`](/documentation/DeviceManagement/AppLock/App-data.dictionary)

The only app available for use on the iOS device.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)
