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 |
For macOS, this only fetches results for osquery's current logged-in user context. The user must also have recently logged in.
For ChromeOS, this table requires the fleetd Chrome extension.
For ChromeOS, this table is only available for Chrome 73+.