Escrow¶
In escrow mode (the default), your MDM collects the password from each Mac with an inventory attribute that runs:
It prints one line of JSON:
{"v":1,"account":"ladmin","password":"…","set":"2026-11-12T20:40:00Z","expires":"2027-01-11T20:40:00Z","verified":true,"host":"Mac-1234"}
| Field | Meaning |
|---|---|
account |
The managed admin |
password |
Its current password |
set, expires |
When it was set and when it rotates next (ISO 8601, UTC) |
verified |
Whether the password worked for the account just now |
host |
The Mac's computer name |
pending, pendingSet |
With staged rotation: the next password, not yet in use |
Log messages go to stderr, so the attribute captures only the JSON. Ready-made scripts for Jamf Pro, Intune, Workspace ONE and other MDMs are described in MDM setup.
Who can read it
In plain escrow, anyone who can read the inventory attribute can read the password. Limit who can see it, or use encrypted escrow.
Two ways to read it¶
Plain escrow offers the password two ways:
| Command | What it gives | Turn it on | |
|---|---|---|---|
| For your MDM (4.0) | macOSLAPS -escrow |
JSON with the current password and, during a staged rotation, the next one. The MDM always has the password the Mac is using. Each run counts as a collection. | Always available |
| For scripts on the Mac (3.x style) | macOSLAPS -read (or the deprecated -getPassword) |
Only the current password, on one line, as 3.x scripts expected. Never counts as a collection, so it doesn't hurry a staged rotation. | AllowRead true in your MDM's profile |
-read is off unless your MDM's configuration profile sets AllowRead true. Setting it is your acknowledgement that anything running as root on the Mac can read the password in plaintext. A value in /Library/Preferences is ignored, because root can write there. AllowNewPassword true likewise allows -rotate -newPassword - (a password a person chose).
Neither key does anything with EscrowCertificates or in device mode. There the password is never handed out in plaintext: -read, -newPassword and -getPassword are refused (exit 78).
Staged rotation¶
A rotation that happens right after your MDM's last inventory would leave the MDM with an old password until the next one. Staged rotation closes that gap:
- The new password is first stored as pending, and
-escrowreports it next to the current one (pending,pendingSet). - macOSLAPS changes the account to it only after
-escrowhas reported itEscrowConfirmationstimes (default 2).
So your MDM always holds the password the Mac is using. Keep both values: if the current password doesn't work, try the pending one.
Why two collections by default? The Mac only knows that -escrow ran, not that your MDM saved the inventory: an inventory update can run the scripts and then fail to send the result. A second collection means another inventory ran after that, so the MDM almost certainly has the password. If you trust your inventory updates, EscrowConfirmations 1 is fine.
When it's applied: on the first macOSLAPS run after the last collection, not at the moment of it. The LaunchDaemon runs every 90 minutes. If you don't load it and rotate from MDM policies instead, a staged password waits for your next -rotate, unless the inventory hook confirms it in the same run (below).
Scripts on the Mac that need the password (XCreds, a macOS installer) should use macOSLAPS -read (with AllowRead true), not -escrow: it prints only the current password and never counts as a collection. See Two ways to read it.
StagedRotation auto (the default) stages only on Macs where -escrow ran in the last 14 days. on always stages, off never does. A first rotation with -firstPass, or a Mac with no stored password, always rotates immediately.
Refreshing inventory after a rotation¶
InventoryHook jamf runs jamf recon after each rotation. For other MDMs, set InventoryHook custom and put your agent's command in InventoryHookCommand, one argument per item. If that command collects inventory (so it runs -escrow), set InventoryHookConfirms true: when it exits 0 and -escrow ran during it, the pending password counts as collected and is applied in the same run. It's off for custom commands by default because a command like jamf policy -event … can exit 0 even when the inventory update inside it failed; InventoryHook jamf runs jamf recon itself and confirms automatically.