Contents

StatusPasscodeIsPresent

The status item that reports whether the device has a passcode.

Declaration

object StatusPasscodeIsPresent

Properties

NameTypeDescription
passcode.is-present Requiredboolean

If true, a passcode is present on the device. If false, a passcode isn’t present on the device. When a passcode is present, the specific attributes of the passcode, such as length or number of complex characters, aren’t reported. Instead, use the passcode.is-compliant status item to verify that the passcode complies with all passcode policies set on the device.

Discussion

Status item availability

Allowed in supervised enrollment

iOS, Shared iPad, visionOS, watchOS

Allowed in device enrollment

iOS, Shared iPad, visionOS

Allowed in user enrollment

iOS, Shared iPad, visionOS

Allowed in local enrollment

iOS, Shared iPad, visionOS, watchOS

Allowed in system scope

iOS, Shared iPad, visionOS, watchOS

Allowed in user scope

Shared iPad

Status item example

{
    "passcode": {
        "is-present": true
    }
}

See Also

Passcode and security items