Platform SSO is the best part of a managed Mac. Sign in once and Outlook, Teams, Edge and Company Portal are all signed in too, with no prompts.

It’s also where I lost the most time, because my Entra password wouldn’t work at the Mac’s login window. The cause turned out to be a setting I’d made weeks earlier and forgotten about.

This is Part 3 of Zero-Touch Mac, a series about building a managed Mac from Apple Business and Intune with every policy, profile and app scripted through Microsoft Graph.

Secure Enclave or Password?

Platform SSO has two methods, and they behave very differently at the login window.

Secure Enclave Password
How it signs in to Entra A hardware-bound key in the Mac’s Secure Enclave Your Entra password
The Mac’s own password Stays separate. You keep a local password Kept in step with your Entra password
Change your Entra password Nothing changes on the Mac The Mac password changes to match
Good for Passwordless, phishing-resistant sign-in One password everywhere

I started with Secure Enclave. It’s the more secure option, and it’s what Microsoft recommends. But I use passkeys for almost everything, so in practice I was typing a separate Mac password I didn’t otherwise need.

I switched to the Password method so there was one password to remember. Changing it was a re-run of the enrolment script with the new method and -UpdateExisting, which updates the existing policy in place and keeps its assignments.

The password that wouldn’t sync

With the Password method, the first time you sign in after registering, macOS checks your Entra password and sets the Mac password to match.

Mine didn’t. The login window only accepted the old local password, and Company Portal wouldn’t take my Entra password either.

Outlook and Teams signed in with no prompts, so Platform SSO itself was working. The password just wasn’t being synced.

Cause one: my passcode rule was stricter than Entra

My passcode policy said at least 12 characters. My Entra password was 9.

When Platform SSO tries to set the Mac password to your Entra password, macOS checks it against the Mac’s passcode rules first. A 9-character password fails a 12-character rule, so macOS rejects it and keeps the old one. Nothing tells you this has happened.

The fix seemed obvious: lower the Mac rule to 9 and let it sync.

Cause two: a second passcode profile I didn’t know about

The next morning, the login window still wanted the old password. So I asked the Mac which rules it was actually enforcing:

pwpolicy getaccountpolicies 2>/dev/null | grep "policyAttributePassword matches '\.{"

It still said .{12,}, at least 12 characters. Intune said 9. So I looked at every passcode payload installed on the Mac:

sudo profiles -P -o stdout | grep -i -A1 -E "minLength|PayloadDisplayName.*asscode"

There were two: my policy with minLength = 9, and a second one called Passcode Profile, identifier www.windowsintune.com.passcode.payload, with minLength = 12.

That identifier is what Intune uses when a compliance policy has password settings. My compliance policy had “require a password” turned off, deliberately, because password rules in compliance break the LAPS account (Part 1). But an earlier version of my script had set a minimum length of 12, and turning the requirement off later didn’t clear it.

Intune was still sending that 12 to the Mac as a passcode profile. When two passcode profiles disagree, macOS applies the stricter one.

Two passcode profiles on one Mac: the stricter rule wins

The fix

Clear the leftover value on the compliance policy:

$b = 'https://graph.microsoft.com/beta/deviceManagement'
$id = ((Invoke-MgGraphRequest GET "$b/deviceCompliancePolicies?`$filter=displayName eq 'AKC - macOS - Compliance'").value)[0].id
Invoke-MgGraphRequest PATCH "$b/deviceCompliancePolicies/$id" -ContentType 'application/json' `
    -Body (@{ '@odata.type' = '#microsoft.graph.macOSCompliancePolicy'; passwordMinimumLength = $null } | ConvertTo-Json)

Then force the Mac to check in with sudo killall IntuneMdmDaemon. A few minutes later the second profile had gone, pwpolicy showed only the 9-character rule, and my Entra password worked at the login window. The keychain and Company Portal followed.

Match the Mac to Entra, not the other way round

The lesson is simple, and I’ve built it into the scripts.

With the Password method, the Mac password is your Entra password, so the Mac’s rules must never be stricter than Entra’s.

For cloud accounts, Entra’s password policy is fixed: at least 8 characters, using characters from three of four types. You can’t change that minimum. So:

  • My baseline script now defaults the Mac minimum to 8, and its README says why.
  • If you want longer passwords, set the longer length on the Mac and make sure every user’s Entra password already meets it.
  • The Mac rule also requires a letter and a number. Entra accepts three of four types, so a password made of upper case, lower case and symbols passes Entra and still fails the Mac. Either drop that rule or make sure passwords include a number.
  • The compliance part of the baseline now clears any leftover password values every time it runs, so an old setting can’t sneak back in.

If your Entra password doesn’t work at the Mac login window, run the two commands above before changing anything. They tell you what the Mac is actually enforcing, which may not be what Intune shows you.

Next in the series: getting Defender and Global Secure Access running with no prompts.