diff --git a/docs/Contributing/reference/audit-logs.md b/docs/Contributing/reference/audit-logs.md index feec596f46..41bb59c47e 100644 --- a/docs/Contributing/reference/audit-logs.md +++ b/docs/Contributing/reference/audit-logs.md @@ -723,6 +723,40 @@ This activity contains the following fields: } ``` +## enabled_macos_update_new_hosts + +Generated when a user turns on updates during macOS Setup Assistant for hosts that automatically enroll (ADE). + +This activity contains the following fields: +- "team_id": The ID of the team that the setting applies to, `null` if it applies to devices that are not in a team. +- "team_name": The name of the team that the setting applies to, `null` if it applies to devices that are not in a team. + +#### Example + +```json +{ + "team_id": 123, + "team_name": "Workstations" +} +``` + +## disabled_macos_update_new_hosts + +Generated when a user turns off updates during macOS Setup Assistant for hosts that automatically enroll (ADE). + +This activity contains the following fields: +- "team_id": The ID of the team that the setting applies to, `null` if it applies to devices that are not in a team. +- "team_name": The name of the team that the setting applies to, `null` if it applies to devices that are not in a team. + +#### Example + +```json +{ + "team_id": 123, + "team_name": "Workstations" +} +``` + ## read_host_disk_encryption_key Generated when a user reads the disk encryption key for a host. diff --git a/server/fleet/activities.go b/server/fleet/activities.go index f74fa7bd4b..980cd6b772 100644 --- a/server/fleet/activities.go +++ b/server/fleet/activities.go @@ -137,6 +137,8 @@ var ActivityDetailsList = []ActivityDetails{ ActivityTypeEditedIOSMinVersion{}, ActivityTypeEditedIPadOSMinVersion{}, ActivityTypeEditedWindowsUpdates{}, + ActivityTypeEnabledMacosUpdateNewHosts{}, + ActivityTypeDisabledMacosUpdateNewHosts{}, ActivityTypeReadHostDiskEncryptionKey{}, @@ -1117,6 +1119,44 @@ func (a ActivityTypeEditedMacOSMinVersion) Documentation() (activity string, det }` } +type ActivityTypeEnabledMacosUpdateNewHosts struct { + TeamID *uint `json:"team_id"` + TeamName *string `json:"team_name"` +} + +func (a ActivityTypeEnabledMacosUpdateNewHosts) ActivityName() string { + return "enabled_macos_update_new_hosts" +} + +func (a ActivityTypeEnabledMacosUpdateNewHosts) Documentation() (activity string, details string, detailsExample string) { + return `Generated when a user turns on updates during macOS Setup Assistant for hosts that automatically enroll (ADE).`, + `This activity contains the following fields: +- "team_id": The ID of the team that the setting applies to, ` + "`null`" + ` if it applies to devices that are not in a team. +- "team_name": The name of the team that the setting applies to, ` + "`null`" + ` if it applies to devices that are not in a team.`, `{ + "team_id": 123, + "team_name": "Workstations" +}` +} + +type ActivityTypeDisabledMacosUpdateNewHosts struct { + TeamID *uint `json:"team_id"` + TeamName *string `json:"team_name"` +} + +func (a ActivityTypeDisabledMacosUpdateNewHosts) ActivityName() string { + return "disabled_macos_update_new_hosts" +} + +func (a ActivityTypeDisabledMacosUpdateNewHosts) Documentation() (activity string, details string, detailsExample string) { + return `Generated when a user turns off updates during macOS Setup Assistant for hosts that automatically enroll (ADE).`, + `This activity contains the following fields: +- "team_id": The ID of the team that the setting applies to, ` + "`null`" + ` if it applies to devices that are not in a team. +- "team_name": The name of the team that the setting applies to, ` + "`null`" + ` if it applies to devices that are not in a team.`, `{ + "team_id": 123, + "team_name": "Workstations" +}` +} + type ActivityTypeEditedWindowsUpdates struct { TeamID *uint `json:"team_id"` TeamName *string `json:"team_name"`