<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/Unlock-User-Account-Command",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rest:put:mdm#UnlockUserAccountCommand"
  },
  "title" : "Unlock User Account"
}
-->

# Unlock User Account

Unlock a user account that the system locked because of too many failed password attempts.

## Discussion

Refer to the following sections to determine supported channels and requirements, and to see an example request and response.

### Command availability

|||
|--------------------------|---------------------------|
|Device channel            |macOS                      |
|User channel              |N/A                        |
|Requires supervision      |macOS                      |
|Allowed in user enrollment|N/A                        |
|Required access right     |DeviceLockAndRemovePasscode|

### Example request and response

**Request:**

```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>Command</key>
    <dict>
        <key>RequestType</key>
        <string>UnlockUserAccount</string>
        <key>UserName</key>
        <string>graham</string>
    </dict>
    <key>CommandUUID</key>
    <string>0001_UnlockUserAccount</string>
</dict>
</plist>
```

**Response:**

```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>CommandUUID</key>
    <string>0001_UnlockUserAccount</string>
    <key>Status</key>
    <string>Acknowledged</string>
    <key>UDID</key>
    <string>91FE0F6E-F91C-589A-95E6-02835CE7126D</string>
</dict>
</plist>
```

## Topics

### Commands and responses

[`UnlockUserAccountCommand`](/documentation/DeviceManagement/UnlockUserAccountCommand)

The command to unlock a user account that the system locked because of too many failed password attempts.

[`UnlockUserAccountResponse`](/documentation/DeviceManagement/UnlockUserAccountResponse)

A response from the device after it processes the command to unlock a user account that the system locked because of too many failed password attempts.



---

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)