Skip to content

Passcode Policies

Configure password and passcode requirements for managed devices. These settings enforce device unlock security and control lockout behavior.

General Settings

FieldTypeDescription
forcePINbooleanRequire a passcode on the device.
allowSimplebooleanAllow simple repeating or ascending values (e.g., 1111, 1234, 0000). When disabled, the user must create a non-sequential, non-repeating passcode.
requireAlphanumericbooleanPasscode must include both letters and numbers.
minLengthintegerMinimum passcode length (4–16).
minComplexCharsintegerMinimum non-alphanumeric characters required (0–4).

Example

json
{
  "forcePIN": true,
  "allowSimple": false,
  "requireAlphanumeric": true,
  "minLength": 8,
  "minComplexChars": 2
}

Rotation and History

FieldTypeDescription
maxPINAgeInDaysintegerMaximum number of days a passcode can be used before the user is forced to change it. Set to 0 for no expiration.
pinHistoryintegerNumber of previous passcodes remembered (0–50). The user cannot reuse any passcode in the history. Set to 0 to disable history enforcement.

Lockout and Auto-Lock

FieldTypeDescription
maxFailedAttemptsintegerNumber of failed passcode attempts before the device wipes (2–11).
maxInactivityintegerTime in seconds of inactivity before the device locks (1–86400).
maxGracePeriodintegerGrace period in seconds before the passcode is required again after the first correct entry. Set to 0 for immediate.

Platform Support

SettingiOSiPadOSmacOS
forcePINYesYesYes
allowSimpleYesYesYes
requireAlphanumericYesYesYes
minLengthYesYesYes
minComplexCharsYesYesYes
maxPINAgeInDaysYesYesYes
pinHistoryYesYesYes
maxFailedAttemptsYesYesYes
maxInactivityYesYesYes
maxGracePeriodYesYesYes

All passcode policy settings apply uniformly across iOS, iPadOS, and macOS.