Catching Platform SSO Password Drift Before FileVault Locks Out Users
Detect and remediate Platform SSO password drift on managed Macs automatically, stopping FileVault lockouts before they become password reset tickets.

This playbook covers
Table of Contents
Table of contents
The old way: a user changes their corporate password in the identity provider portal on their phone, closes the lid on a Mac that has been asleep since Friday, and on Monday morning that Mac presents a FileVaultThe KBY LexiconFileVaultFileVault is Apple's built-in full-disk encryption for macOS, protecting data at rest via user credentials and escrowed recovery keys. unlock screen that no longer accepts their new password. The technician’s fix is manual every time: verify identity out of band, pull the personal recovery key or institutional recovery key from escrow, unlock the volume, log in with the stale local password, then manually force a Platform SSOThe KBY LexiconPlatform SSOPlatform SSO explained: the operating system as SSO broker, its architecture, common misunderstandings, and how to validate it safely before deployment. re-registration so the local account catches up with the identity provider. Multiply that by a fleet of a few thousand Macs and password rotation policy, and password drift becomes one of the highest-volume tickets in the queue disguised as three different ticket categories: FileVault unlock, login failure, and account locked.
The new way is to stop treating this as a password reset problem and start treating it as a synchronisation monitoring problem. When Platform SSO is configured with a password-based authentication method, the extension can keep the local account password aligned with the identity provider during login and unlock events at the macOSThe KBY LexiconmacOSmacOS is Apple's Unix-based operating system for Mac hardware, forming the platform layer beneath endpoint management, security enforcement and application lifecycle tooling. login window and lock screen. This does not apply to every configuration: it depends on the AuthenticationMethod and on what your extension vendor documents, and whether the new password is accepted at the FileVault pre-boot unlock screen depends on the release (Microsoft documents this for its extension only on macOS 15). Drift can survive long enough to cause a lockout when the sync opportunity is missed, typically because the Mac was offline, asleep, or the extension’s registration lapsed. This article builds a detection and notification layer on top of Platform SSO that flags the drift condition before the next full lock event, using documented Apple and MDM primitives. Check the exact sync behaviour for your authentication method in Apple’s and your extension vendor’s documentation before relying on it.
#Why Password Drift Happens on Managed Macs
Platform SSO, delivered through a configuration profile and a vendor extension such as Microsoft’s Entra ID Platform SSO extension or Okta Verify, can synchronise the local account password with the identity provider when the authentication method is password-based. The sync depends on the extension being registered, the device having a network path to the identity provider at the moment of authentication, and the local account being in a state that allows the change (for example holding a secure token). When any of those conditions is missing at the moment the user changes their password elsewhere, the Mac may keep the old password until the next successful synchronised authentication. If the Mac stays offline, sleeps through several days, or the extension drops its registration after an OS update, the user can hit a login window or FileVault prompt with a password that has already been retired at the identity provider.
#Solution Architecture
The remediation pattern has three layers, each doing a narrow job:
- Prevention: a correctly scoped Platform SSO configuration profile that enables the authentication method and account options your identity provider documents, deployed through Jamf Pro or Microsoft Intune.
- Detection: a lightweight, read-only local check that inspects Platform SSO registration state and secure token status on an interval, without ever touching the password itself.
- Notification and escalation: a notification that prompts the user to sign in again through the extension’s own flow while the device is online, with escalation to a human only when the drift signature persists.
Nothing in this pipeline resets a local password directly. Forcing a local password reset on a FileVault-encrypted volume without a valid secure token can strip the account’s ability to unlock the disk, which converts a ticket into a data recovery incident. The design keeps the fix inside the identity provider’s own re-authentication flow.
#Prerequisites and Permissions
- macOS 13 Ventura or later on managed endpoints, since Platform SSO and the
app-sso platformstatus check used below are only present from that release onward (theapp-ssotool itself dates from macOS 10.15 and the Kerberos SSO extension). - An existing Platform SSO deployment (Microsoft Entra ID Platform SSO extension, Okta Verify, or another Apple-compliant Platform SSO extension) already scoped through a configuration profile.
- Jamf Pro role or Intune role with permission to deploy scripts, read Extension Attributes, custom attributes or compliance policies, and scope Smart Groups or dynamic groups. No local admin rights are required on the endpoint; scripts deployed by the MDM run as root.
- Read access to FileVault escrow status in your MDM (Jamf Pro’s FileVault recovery key report, or Intune’s FileVault recovery key reporting for macOS) to confirm recovery keys are valid before you scope this to a device population.
- A ticketing system webhook endpoint (ServiceNow, Jira Service Management, or similar) with an API token scoped only to ticket creation, for the escalation path.
#Implementation Steps
- Action: Confirm the Platform SSO configuration profile matches your identity provider’s documentation. Record the current profile payload first (export it from the MDM) so you can restore it. In the profile’s PlatformSSO payload, verify against Apple’s documented Platform SSO payload keys that
AuthenticationMethodis set to the method your extension vendor requires for password sync, and that related keys such asUseSharedDeviceKeysandEnableCreateUserAtLoginare set as the vendor documents. Secure token status is not controlled by a profile setting; check it withsysadminctlas in the next step.
Expected result: The profile shows as installed and verified in device inventory, with no configuration errors in the MDM’s profile status report.
Evidence: Screenshot or exported record of the profile’s installed status and payload contents from Jamf Pro’s Computer Inventory or Intune’s Device Configuration report.
- Action: Baseline secure token and FileVault status across the target scope before enabling detection, using a read-only inventory script run through your MDM.
1#!/bin/bash 2console_user=$(stat -f "%Su" /dev/console) 3echo "Console user: ${console_user}" 4sysadminctl -secureTokenStatus "${console_user}" 2>&1 5fdesetup status 6fdesetup listExpected result: Output confirms
Secure token is ENABLEDfor the console user andFileVault is On. Any device reporting a disabled secure token or FileVault off must be excluded from automated remediation until corrected manually.
Evidence: Captured stdout logged to your MDM’s script result field or piped to a Jamf Pro Extension Attribute for fleet-wide reporting. - Action: First capture the real output of
/usr/bin/app-sso platform -son a registered and an unregistered test Mac on the macOS build you target, and note exactly which fields and values indicate registration state. The output format is not documented by Apple and can change between releases, so do not assume key names. Then deploy the drift detection script as a LaunchDaemon so it runs on an interval without depending on the user being logged in. Set the two pattern variables below to the text you actually observed.1#!/bin/bash 2# /usr/local/kby/bin/pssodrift-check.sh 3# Read-only check. Never modifies the local password or keychain. 4 5LOG="/var/log/kby/psso-drift.log" 6STATE="/var/log/kby/psso-drift.count" 7mkdir -p /var/log/kby 8console_user=$(stat -f "%Su" /dev/console) 9status_output=$(/usr/bin/app-sso platform -s 2>&1) 10timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 11 12# REPLACE these patterns with text captured from app-sso platform -s 13# on your target macOS build, for a healthy and an unregistered device. 14HEALTHY_PATTERN="REPLACE_WITH_OBSERVED_HEALTHY_TEXT" 15DRIFT_PATTERN="REPLACE_WITH_OBSERVED_UNREGISTERED_TEXT" 16 17drift_flag=0 18if echo "${status_output}" | grep -q "${DRIFT_PATTERN}"; then 19 drift_flag=1 20elif ! echo "${status_output}" | grep -q "${HEALTHY_PATTERN}"; then 21 drift_flag=1 22fi 23 24secure_token=$(sysadminctl -secureTokenStatus "${console_user}" 2>&1) 25filevault=$(fdesetup status) 26 27echo "${timestamp} user=${console_user} drift=${drift_flag}" >> "${LOG}" 28echo "${status_output}" >> "${LOG}" 29 30if [ "${drift_flag}" -eq 1 ]; then 31 count=$(cat "${STATE}" 2>/dev/null || echo 0) 32 echo $((count + 1)) > "${STATE}" 33 # Notification is best effort only; the extension's own prompt is the supported re-authentication path. 34 console_uid=$(id -u "${console_user}" 2>/dev/null) 35 if [ -n "${console_uid}" ] && [ "${console_user}" != "root" ] && [ "${console_user}" != "loginwindow" ]; then 36 launchctl asuser "${console_uid}" sudo -u "${console_user}" osascript -e 'display notification "Please sign in again to keep your Mac account in sync with your work password." with title "Account Sync Needed"' 37 fi 38 exit 1 39fi 40echo 0 > "${STATE}" 41exit 0Install the script and the launchd job on a fifteen-minute interval:
1mkdir -p /usr/local/kby/bin 2install -m 755 -o root -g wheel pssodrift-check.sh /usr/local/kby/bin/pssodrift-check.sh 3cat > /Library/LaunchDaemons/com.kby.psso-drift-check.plist <<'PLIST' 4<?xml version="1.0" encoding="UTF-8"?> 5<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 6<plist version="1.0"> 7<dict> 8 <key>Label</key> 9 <string>com.kby.psso-drift-check</string> 10 <key>ProgramArguments</key> 11 <array> 12 <string>/usr/local/kby/bin/pssodrift-check.sh</string> 13 </array> 14 <key>StartInterval</key> 15 <integer>900</integer> 16 <key>RunAtLoad</key> 17 <true/> 18</dict> 19</plist> 20PLIST 21chown root:wheel /Library/LaunchDaemons/com.kby.psso-drift-check.plist 22chmod 644 /Library/LaunchDaemons/com.kby.psso-drift-check.plist 23launchctl bootstrap system /Library/LaunchDaemons/com.kby.psso-drift-check.plistPilot on a small test group first and run the script by hand to confirm it reports healthy on a known-good Mac and drift on a known-unregistered one.
Expected result:launchctl print system/com.kby.psso-drift-checkshows the job loaded and running on schedule.
Evidence: Output oflaunchctl print system/com.kby.psso-drift-checkand the first populated entries in/var/log/kby/psso-drift.log. - Action: Feed the drift flag and consecutive-detection count into a Jamf Pro Extension Attribute (or an Intune shell script with a custom attribute, or a custom compliance script) so devices with active drift populate a Smart Group or dynamic group automatically. Scope a notification or a Self Service item to that group that directs the user to sign in again through the extension’s own prompt or the identity provider’s app. No documented mechanism lets Jamf or Intune force a Platform SSO re-registration silently, so the user-facing step stays with the extension’s own UI; confirm what your vendor supports.
Expected result: A device showing drift appears in the group within one detection interval and the user receives the notification without technician intervention.
Evidence: Group membership count over time, exported weekly from the MDM, showing devices entering and then leaving the group after the user re-authenticates.
- Action: Configure the escalation in your ITSM or MDM layer. The detection script keeps a consecutive-detection count in
/var/log/kby/psso-drift.countand exits 1, but makes no webhook call itself. Report the count through the same Extension Attribute or custom attribute, and have the ITSM or MDM automation raise a ticket only when the count reaches three, guarding against a single missed network check. Build in a cap on tickets per device and a way to disable it. The payload below is an example of what that layer might send.1{ 2 "event": "platform_sso_drift_escalation", 3 "device_serial": "C02ZP1A2LVDQ", 4 "console_user": "j.smith", 5 "consecutive_detections": 3, 6 "secure_token_status": "ENABLED", 7 "filevault_status": "On", 8 "first_detected_utc": "2024-05-14T08:15:00Z", 9 "last_detected_utc": "2024-05-14T09:45:00Z", 10 "recommended_action": "Manual re-registration of Platform SSO extension required", 11 "priority": "P3" 12}Expected result: A ticket is created automatically in the ITSM queue tagged for L2 review, carrying enough diagnostic context that no clarifying questions are needed before work starts.
Evidence: The created ticket ID returned by the webhook response, stored alongside the device serial. - Action: For fleets managed through Intune, deploy the same detection script as an Intune macOS shell script policy, reporting the drift flag through a custom attribute or a custom compliance script. Proactive Remediations are a Windows feature and are not used here. The macOS script only detects and notifies, without touching credentials.
Expected result: The Intune custom attribute or compliance report shows drift state per device, matching the Jamf-side drift log for cross-platform fleets.
Evidence: Intune script run status and custom attribute report, exported as CSV.
#Verification and Expected Evidence
- Manually rotate a test account’s password at the identity provider while the test Mac is offline, then bring it back online without unlocking. Run
/usr/local/kby/bin/pssodrift-check.shby hand and confirm it exits 1 and logs a drift entry. - Confirm the notification appears on screen within one detection interval (if it does not, rely on the group-based prompt), and that completing the extension’s re-authentication flow clears the drift flag on the next run, with the script exiting 0.
- Confirm the Smart Group or dynamic group membership updates within one MDM inventory cycle.
- On a disposable test device, force three consecutive drift detections, confirm
/var/log/kby/psso-drift.countreads 3, and confirm your ITSM or MDM automation raises exactly one ticket with a payload matching the JSON example above. - Confirm
fdesetup statusandsysadminctl -secureTokenStatusremain unchanged before and after remediation, proving the process never touched FileVault’s key bag or the account’s secure token.
#Rollback
Rollback is intentionally cheap because the automation never mutates credentials or disk encryption state.
- Unload the LaunchDaemon:
launchctl bootout system/com.kby.psso-drift-checkand remove the plist, the script and the/var/log/kbyfiles from disk. - Remove the device from the drift Smart Group scope or delete the Intune script assignment.
- Disable the escalation webhook endpoint or revoke its API token if false positives are flooding the ticket queue.
- The Platform SSO configuration profile itself is not touched by this rollback; it remains installed exactly as before this layer was added.
#Failure and Escalation Conditions
- Wake a human immediately if a device reports
Secure token is DISABLEDorFileVault is Offunexpectedly during a baseline or drift check. This indicates a state that must never be fixed automatically, since any password-adjacent action on that device risks the encrypted volume. - Escalate to L2 after three consecutive drift detections on the same device with no user-driven resolution, since this suggests the Platform SSO extension registration itself has failed rather than a simple missed sync window.
- Escalate to L3 or the identity platform owner if the escalation ticket volume for a single site or subnet spikes together, which typically indicates a network path or certificate trust issue between that location and the identity provider rather than isolated device drift.
- Monitoring signal: alert on any week-over-week increase greater than 20 percent in the drift Smart Group’s steady-state population, which signals the detection interval or the underlying Platform SSO extension needs review rather than more tickets needing triage.
- Blast radius: the detection script is read-only and the user prompt is a notification; the maximum blast radius of a bug in this pipeline is an unnecessary notification, not a locked account or a bricked disk.
#Measuring Ticket Deflection
Tag every FileVault unlock, login failure, and account locked ticket with a category field before rollout so you have a clean baseline. After deployment, track three numbers weekly: the count of devices entering the drift Smart Group, the count that self-resolve without a ticket, and the count that escalate. Deflection rate is calculated as (baseline weekly password/login ticket count - current weekly count) / baseline weekly password/login ticket count. Measure the self-resolve rate against your own baseline rather than an external benchmark. The escalations that remain are the genuinely broken registrations that were previously invisible until the user hit a full lockout, so L2 receives tickets with richer diagnostic context attached automatically.
#References
- Apple’s Platform Deployment Guide, covering Platform SSO configuration and the underlying MDM payload keys.
- Apple Developer documentation for device management, the authoritative reference for MDM commands and profile schemas used in this workflow.
- Apple support documentation on using FileVault to encrypt the startup disk, referenced for secure token and recovery key escrow behaviour.
- Microsoft Learn guidance on Intune proactive remediations, relevant to Windows fleets only; macOS uses shell script policies and custom attributes.
#Operational Context
Running the drift check on a fifteen-minute LaunchDaemon interval across a fleet of several thousand Macs has second-order effects that are worth planning for before wide rollout rather than discovering them in a change advisory board meeting. The script itself performs only a handful of lightweight calls (app-sso platform -s, sysadminctl -secureTokenStatus, fdesetup status), but at fleet scale the aggregate log volume and the timing of those calls relative to sleep/wake cycles and existing MDM inventory collection windows can create contention. Teams should stagger the LaunchDaemon's StartInterval slightly across device cohorts, or accept jitter from RunAtLoad plus the interval timer, so that thousands of Macs are not all hitting the identity provider's authentication endpoint in the same sixty-second window after a mass wake event such as a Monday-morning office arrival.
The console-user detection method (stat -f %Su /dev/console) only identifies whichever account currently owns the console session. On shared lab Macs, kiosk devices, or machines with multiple enrolled local accounts, this creates a coverage gap: drift on a secondary account that never becomes the console user will not be detected until that account actually attempts to log in, at which point the fix reverts to the original manual escalation path the automation was built to avoid. Fleets with meaningful shared-device populations should track this as a known exception scope rather than assume uniform coverage from the Smart Group count.
Because the log file at /var/log/kby/psso-drift.log accumulates an entry every fifteen minutes indefinitely, with no rotation defined in the LaunchDaemon configuration shown, operational teams need a log rotation policy layered on top of this deployment before it runs unattended for months. Left unmanaged, this is a slow but real disk-consumption issue on endpoints with constrained local storage, and it also means any audit pull of drift history for compliance review needs a defined retention window rather than relying on whatever happens to still be on disk.
Major macOS upgrades are a known trigger for Platform SSO extension re-registration lapses, as referenced in the drift-cause analysis above. Operationally this means a scheduled OS upgrade wave should be treated as an expected source of a short-lived spike in the drift Smart Group population, distinct from the subnet-level spike pattern that indicates a genuine network or certificate trust failure. Confusing the two risks either an unnecessary L3 escalation during a routine upgrade cycle or, conversely, dismissing a real infrastructure fault as ordinary post-upgrade noise.
Rollout sequencing matters given the LaunchDaemon runs as root on every boot and wake cycle across the fleet. A ring-based deployment, pilot group first, then a broader cohort, then full fleet, scoped through the same Smart Group or dynamic group mechanism used for the drift population itself, lets operations teams confirm log growth, notification frequency, and webhook ticket volume at a small scale before committing to fleet-wide root-level automation.
Helpdesk process needs a corresponding update alongside the technical deployment: the historical split across FileVault unlock, login failure, and account locked ticket categories should be consolidated into a single canonical drift category so L1 staff can distinguish an automatically generated escalation ticket, which already carries device serial, secure token status, and detection timestamps, from an organic user-reported ticket that still requires full manual triage.
- Stagger LaunchDaemon start intervals across device cohorts to avoid synchronized authentication bursts against the identity provider after mass wake events.
- Treat shared or multi-account Macs as a coverage exception, since console-user detection only monitors the currently active local account.
- Define a log rotation policy for /var/log/kby/psso-drift.log before long-term unattended operation to prevent unbounded local disk growth.
- Expect a short-lived, upgrade-correlated spike in drift detections after major macOS version rollouts, and distinguish it from subnet-level infrastructure spikes before escalating to L3.
- Use ring-based deployment (pilot group, then broader cohorts) for the root-level LaunchDaemon given its fleet-wide execution scope.
- Consolidate legacy FileVault unlock, login failure, and account locked ticket categories into one drift category to prevent double-ticketing between automated and organic reports.
#Related reading
Evidence trail
Sources and verification
Primary documentation and external technical references used in this article.
About this page
Read-only scripts
- Windows devices with no BitLocker recovery key in Entra IDMicrosoft Entra ID, Windows
- Intune devices that haven't synced in N daysMicrosoft Intune
- Mailboxes forwarding to external addressesExchange Online
- BitLocker status of every volume on this PCWindows
Upcoming deadlines
- Intune moves to macOS 15 and laterQ4 2026
- Original Apple Developer ID Sub-CA expires: affected .pkg installers stop installing1 Feb 2027
Explore KBY
The KBY Brief
A short email about twice a week with new runbooks, configuration traps and fixes from KBY Technologies.
SubscribeRelated articles
macOS
FileVault Personal Recovery Key Not Escrowed to Jamf Pro: Fix
Find Macs with FileVault on but no valid recovery key in Jamf Pro, then reissue and escrow new keys in safe, validated waves without disabling encryption.
Automation & Scripting
Automating macOS Storage Cleanup to Kill Low-Disk Tickets
A production-safe launchd and zsh workflow that self-remediates low disk space on managed Macs before users ever open a support ticket.
Security
Expedia Confirms Cyberattack Through a Third-Party Vendor: The Cloud Door Many Firms Forget to Close
Expedia says attackers reached its systems through a compromised data platform provider, but has not said what was taken. What is confirmed, how this kind of vendor attack works, and five checks for your own cloud.
Enterprise IT Management
Restricting Microsoft 365 Group Creation to an Approved Security Group
How to limit Microsoft 365 Group creation to one approved security group with the Group.Unified directory setting, including state capture, validation from both sides, failure modes and a tested rollback.
Discover more
Learn More About KBY
About KBY
Learn about our mission, how our content is produced, and how we handle corrections.
Why Trust KBY
How KBY content is produced, what is checked automatically, and how errors are corrected.
The KBY Brief
A short email about twice a week with new runbooks, configuration traps and fixes from KBY Technologies.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Operate smarter, with fewer recurring tickets.
Receive new operational playbooks, incident-prevention guidance, automation scripts and recovery runbooks.
Comments
Add a thoughtful note on Catching Platform SSO Password Drift Before FileVault Locks Out Users. Comments are checked for spam and held for moderation before appearing.