← Back to all articles

How to Enforce a macOS Screen Lock with Microsoft Intune

Idle timer leading to a locked macOS display

“Every Mac locks its screen after five minutes and needs a password to get back in” is one of the simplest compliance controls to write down and one of the most annoying to actually enforce — because macOS won’t do it on its own and users won’t do it for you. This is how I enforce it fleet-wide with Microsoft Intune’s Settings Catalog, which is the clean way to do it in 2026 (no custom property lists, no configuration-profile XML to hand-edit).

Key takeaways

Use an Intune Settings Catalog profile for macOS with two things set: Login Window → Login Window Idle Time (seconds until the screen saver starts, e.g. 300 for five minutes) and Screensaver → Ask For Password = true with Ask For Password Delay = 0. Assign it to a device group, and confirm it landed with profiles show on a Mac. That satisfies CIS Level 1 and the “screen locks and needs a password” line in almost every audit.

Screen saver vs. screen lock — the distinction that trips people up

macOS doesn’t have a single “lock after X minutes” setting. It has a screen saver that starts after an idle period, and a separate rule for whether a password is required to dismiss the screen saver (or wake from sleep) and how quickly that requirement kicks in. “The screen locks” is the combination of the two: screen saver starts after idle time, and a password is required immediately after. Configure only the idle time and you get a screen saver that anyone can click away. Configure only the password requirement and nothing happens until the user manually starts the screen saver. You need both.

Why Settings Catalog and not a custom profile

You can still do this with a hand-built .mobileconfig targeting the com.apple.screensaver and com.apple.loginwindow preference domains, and for years that was the only option. The Settings Catalog now exposes these same payloads as named, documented settings with validation — which means no XML, no guessing at key names, and a profile that other admins can actually read. Unless you have an edge case the catalog doesn’t cover, use the catalog.

Building the profile — step by step

  1. Open the profile creator. In the Intune admin center, go to Devices → Configuration → Create → New Policy. Platform: macOS. Profile type: Settings catalog. Click Create.
  2. Name it something future-you will understand. Something like macOS — Screen Lock (5 min, password required). A vague name like “Screensaver Policy” is how you end up with three overlapping profiles nobody wants to touch.
  3. Add the idle-time setting. Click Add settings, search for Login Window, and from the Login Window category select Login Window Idle Time. Set it to the number of seconds before the screen saver activates — 300 for five minutes, 600 for ten. CIS Level 1 wants this at 1200 (20 minutes) or less; I use 300 in regulated environments.
  4. Add the password requirement. Search for Screensaver and from the Screensaver category add two settings: Ask For Password (set to True) and Ask For Password Delay (set to 0 for an immediate lock). A non-zero delay is a grace period where the screen saver is up but no password is needed yet — useful for shared kiosks, a liability everywhere else.
  5. Leave the user-context screen saver settings alone unless you need them. The catalog also has a Screensaver User category under User Experience with its own Idle Time. The device-scoped Login Window setting from step 3 is what you want for enforcement; the user one is easy to set to a conflicting value by accident.
  6. Skip scope tags (unless your tenant uses them for delegated admin), then move to Assignments.
  7. Assign to a device group. Add your managed-Mac group under Included groups. Device-group assignment is right here because a screen lock should follow the machine, not the person — a shared Mac still needs to lock.
  8. Review and create. The profile applies the next time each Mac checks in with Intune — usually within a few minutes on an active device, up to 8 hours on one that’s been asleep.
Intune admin center: Create a profile with Platform macOS and Profile type Settings catalog
Step 1 — Devices → Configuration → Create → New Policy. Platform macOS, profile type Settings catalog. (Illustration of the Intune admin center.)
Intune Settings Catalog: Login Window Idle Time set to 300 seconds
Step 3 — under the Login Window category, set Login Window Idle Time to the number of seconds before the screen saver starts (300 = 5 minutes).
Intune Settings Catalog: Ask For Password On, Ask For Password Delay 0
Step 4 — under the Screensaver category, turn Ask For Password on and set Ask For Password Delay to 0 for an immediate lock.

What each value actually does

Verifying it worked

Don’t trust the Intune report alone — it tells you the profile was delivered, not that the behaviour is right. On a target Mac:

  1. Run profiles show (or sudo profiles show -type configuration) and confirm your profile appears with the screensaver and login window payloads.
  2. Check the effective values: defaults -currentHost read com.apple.screensaver idleTime should return your idle seconds, and askForPassword should be 1.
  3. Actually walk away from the Mac for the idle period and confirm the screen saver starts and asks for a password when you come back. Test the machine, not the console.

Gotchas from doing this at scale

Bottom line

Two settings in one Settings Catalog profile — idle time and require-password-immediately — assigned to a device group, is the whole job. It maps directly to CIS Level 1 and to the screen-lock control in every compliance framework I’ve been audited against, and it takes about five minutes to build. The only real work is deciding your idle number and then actually testing it on a Mac instead of trusting the dashboard.