Returns if the screen locks automatically and the time, in seconds, it takes until the screen is locked automatically while idle. For macOS, this table will return no results if osquery is running as root.
Column | Type | Description |
---|---|---|
enabled | integer | 1 If a password is required after sleep or the screensaver begins; else 0 |
grace_period | integer | The amount of time in seconds the screen must be asleep or the screensaver on before a password is required on-wake. 0 = immediately; -1 = no password is required on-wake |