Fixed policy check for macOS - Disable guest account (#27531)

I created and tested the fix before seeing the [comment in this
issue](https://github.com/fleetdm/fleet/issues/24417).

Feel free to merge the fix or close this out but I made this pull
request since we had another customer report this issue today.
This commit is contained in:
Allen Houchins
2025-04-08 08:52:05 -05:00
committed by GitHub
parent d0a47fb25e
commit c57fc2d03e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ policies:
- name: macOS - Disable guest account
description: This policy checks if the guest account is disabled.
resolution: As an IT admin, deploy a macOS, login window profile with the DisableGuestAccount option set to true.
query: SELECT 1 FROM managed_policies WHERE domain='com.apple.loginwindow' AND username = '' AND name='DisableGuestAccount' AND CAST(value AS INT) = 1;
query: SELECT 1 FROM managed_policies WHERE domain='com.apple.mcx' AND username = '' AND name='DisableGuestAccount' AND CAST(value AS INT) = 1;
platform: darwin
critical: false
calendar_events_enabled: false