lock screen after laptop lid close

Zambo
New Contributor II

Hello,

I am trying to configure a profile to lock users laptop screen soon as they close the laptop lid, any help on how to do that?

3 REPLIES 3

A_Collins
New Contributor III

Create a profile with Application & custom settings. Preference domain: com.apple.screensaver

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>askForPassword</key>
<true/>
<key>askForPasswordDelay</key>
<integer>0</integer> 
</dict>
</plist>

Zambo
New Contributor II

Thanks Collins,

Do you a link to a video or documentation I can follow to see how to create a similar profile?

A_Collins
New Contributor III

Screenshot 2024-03-15 at 09.26.09.png