system_settings_automatic_logout_enforce Enforce Auto Logout After $ODV Seconds of Inactivity
All changes in this version
Title
Enforce Auto Logout After $ODV Seconds of Inactivity
Control
/usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('.GlobalPreferences')\
.objectForKey('com.apple.autologout.AutoLogOutDelay').js
EOS
Discussion
Auto logout _MUST_ be configured to automatically terminate a user session and log out the after $ODV seconds of inactivity.
NOTE:The maximum that macOS can be configured for autologoff is $ODV seconds.
[IMPORTANT]
====
The automatic logout may cause disruptions to an organization's workflow and/or loss of data. Information System Security Officers (ISSOs) are advised to first fully weigh the potential risks posed to their organization before opting to disable the automatic logout setting.
====
Related controls
ac-12, ac-2.5
Fix
This is implemented by a Configuration Profile.