Moving a Passcode Payload to a Passcode Policy Declarative Configuration - Declarative Device Management Migration Guide

Declarative Device Management Migration Guide

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
Important:
  • Do not deploy passcode settings and a restriction that prevents passcode modification at the same time. If a configuration profile or blueprint with a Restrictions payload restricts the ability to modify the passcode while the declarative configuration applies a passcode requirement, the profile fails to install with an error stating that the profile may require a passcode change but the passcode cannot be modified. Separate these settings so users can set a compliant passcode before you restrict modification.

  • Passcode settings configured in a Jamf Pro PreStage enrollment apply during enrollment, and you cannot edit them afterward. Where a PreStage passcode payload and a declarative configuration both apply, the device enforces the most restrictive settings.

Consider moving the Passcode configuration profile payload to a Passcode policy declarative configuration in blueprints. It has the widest OS support of any declarative configuration, it applies to computers and mobile devices, and passcode compliance state is available as an activation condition (@status(passcode.is-compliant)) that other blueprints can depend on once the declarative configuration is in place. Scope the Passcode policy declarative configuration to a test group first and confirm enforcement matches the existing configuration profile before expanding your scope.

Note:

Automated Device Enrollment is an exception. A blueprint cannot deploy during Setup Assistant, so a configuration profile remains the only way to enforce passcode requirements before user creation, or before the initial passcode is set on iOS devices. Keep the profile in place for that first-passcode enforcement, and move to a blueprint for ongoing management.

Before you remove the Passcode payload from a configuration profile, record the values from your existing configuration profile. The Passcode policy declarative configuration in blueprints uses equivalent settings, including the following:
  • Passcode complexity
  • Minimum passcode length
  • Maximum failed login attempts
  • Automatic device lock
  • Maximum passcode age
  • Passcode reuse limit
  • Custom regex passcode requirement
    Note:

    The configuration profile Passcode payload does not contain a custom regex field in the Jamf Pro interface. If your organization enforces a custom regex requirement through an uploaded or custom-built profile, ensure you record that regex value before moving since it will not appear in the standard Passcode payload settings you are comparing against.

  1. Create a blueprint with a Passcode policy component.

    For instructions, see Blueprint Builder in the Jamf Pro Blueprints Configuration Guide.

  2. Configure the settings to match the values from your existing Passcode policy payload.
  3. (Optional) Configure a custom regex for complexity requirements that standard requirements cannot express.
  4. (Optional) Configure an activation condition if the passcode policy applies only to a subset of devices in scope.

    For more information, see Scope and Activation Conditions in the Jamf Pro Blueprints Configuration Guide.

  5. Click Save.
  6. Click Deploy to deploy the blueprint to the configured device groups.
  7. Verify the component installed on a device by navigating to:
    • (Computers) System Settings > General > Device Management. Double-click the MDM profile, and then scroll to Configurations.

    • (Mobile devices) Settings > General > VPN & Device Management > MDM Profile > Configurations.

  8. On a test device, set a non-compliant passcode and confirm the device rejects it.
  9. (Computers with macOS 13.1 or later) Confirm the password reset behavior at next authentication matches your intent. Verify if the device prompts for a passcode change at the next authentication and adjust the configuration if the behavior does not match the setting you selected.
  10. Remove the Passcode payload from the original configuration profile.
    Note:

    Until the Passcode payload is removed from the original configuration profile, the most restrictive settings between the profile payload and the declarative configuration apply.

The Passcode Policy declarative configuration now enforces passcode requirements on scoped devices, reporting compliance status continuously instead of relying on a one-time profile installation. Removing the legacy Passcode payload eliminates the conflict window where both configurations applied simultaneously.

Using the same workflow, you can now begin to move other legacy payloads to their declarative configuration equivalent in blueprints.