payload for “System Settings > Lock Screen > Turn display off on power adapter when inactive"

New Contributor III

I can't seem to figure out where the config profile payload for handling these lock screen options are. Also, is there a way to let standard users adjust these without admin credentials?

Screenshot 2023-01-11 at 11.56.56 AM.png


Legendary Contributor III

Those will be in the Energy Saver Configuration Profile payload, and under the Portable > Battery and Portable > Power Adapter tabs.

As for allowing end users to adjust those, I don't know the exact syntax, but my guess is some security authorizationdb command would allow standard users to edit those settings. However, if you apply those settings via Config Profile, I don't think they would then be able to adjust any of them. Most profile settings lock down the settings its applying to.

New Contributor III

In Jamf, the energy settings payloads allow me set a value, but I can't see where I would allow standard users to change the settings on their own. Something is requiring admin credentials for that, but I don't see where I can manage that.

Legendary Contributor III

I don't think that's a Jamf thing. I believe it's the OS that locks those once the device is under MDM management.

You can try the following to see it opens the settings up. Again, uncertain if this will work alongside an applied profile managing those settings, but you can try it.

/usr/bin/security authorizationdb write system.preferences allow
/usr/bin/security authorizationdb write system.preferences.energysaver allow


New Contributor

Worked great for me, stuffed the script in a policy and my standard user account can now change the lock screen settings, Thanks!

Thank you! Confirming this script still works for Mac OS Ventura! As Tvande mentioned below I was able to create this as a script and then created a policy to apply for standard users. 


iMazing is a great app for figuring out payloads.

+1 for the authorizationdb to change user permissions

New Contributor II

I have tried to set display off on battery and power adapter for our Macbooks. Both with Configuration Profile and script running at recurring checking. But still users are able to change these settings in Mac OS Ventura. The settings jumps back at next check-in. I want these options be locked for our users, so they can't change them. 

Unfortunately I have the same experience. Not sure if this is a bug or intended behaviour

unfortunately having the same issue here