When it is written
Windows writes 4799 when a process enumerates the members of a security-enabled local group on the computer, such as the built-in Administrators or Backup Operators group or a group created on the computer. Subject is the account the request ran as and Process Information the program that made it. Microsoft lists Windows 10 and Windows Server 2016 as the first versions that write it, and notes that listing group members in Active Directory Users and Computers does not generate it.
Microsoft's event page names no required server role, and its sample is a Windows 10 workstation; the subcategory page recommends Success auditing on domain controllers, member servers and workstations alike, in part to record when group membership was enumerated. The subcategory has no failure events.
No rule reads 4799 yet. It is the computer-side view of a question the rules ask on domain controllers: who looks up the membership of the administrative groups. There, lookups through the Security Account Manager appear as 4661 under Audit SAM.
How to turn it on
Advanced audit policy subcategory Audit Security Group Management, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Account Management > Audit Security Group Management| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success | Microsoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing. |
| Member servers | Success | Microsoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing. |
| Workstations | Success | Microsoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing. |
auditpol /get /subcategory:"Security Group Management"auditpol /set /subcategory:"Security Group Management" /success:enableauditpol /get /subcategory:"{0CCE9237-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account that asked for the member list. Event Viewer shows the resolved name when it can. | v0 |
Account NameSubjectUserNameSubject | Name of the account that asked for the member list. A computer account (ending with $) when a service running as the computer asked. | v0 |
Account DomainSubjectDomainNameSubject | Domain of that account, or the computer name for a local account. NT AUTHORITY for some well-known principals. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the subject's session on this computer, in hexadecimal. The logon event (4624) with the same ID shows how the session was opened and, for a network logon, the address it came from. | v0 |
Security IDTargetSidGroup | SID of the group. Built-in groups have fixed SIDs of the form S-1-5-32- | v0 |
Group NameTargetUserNameGroup | Name of the group whose members were listed (shown as Group Name), for example Administrators. Built-in group names are localized, so match them on TargetSid. | v0 |
Group DomainTargetDomainNameGroup | Domain or computer of the group (shown as Group Domain). Builtin for a built-in group, the computer name for a group created on the computer, the domain name for a domain group. | v0 |
Process IDCallerProcessIdProcess Information | ID of the process that listed the members (shown as Process ID), in hexadecimal. It matches the New Process ID of the process creation event (4688) on the same computer. | v0 |
Process NameCallerProcessNameProcess Information | Full path of the program that listed the members (shown as Process Name). | v0 |
Values to know
Security ID TargetSid
| Value | Meaning | Signal |
|---|---|---|
S-1-5-32-544 | AdministratorsThe group Microsoft names first among critical local groups. Whoever is in it controls the computer. | Worth knowing |
S-1-5-32-551 | Backup OperatorsIts members can back up and restore files whatever their permissions. Microsoft names it as a critical local group as well. | Worth knowing |
S-1-5-32-555 | Remote Desktop UsersShows who may sign in over Remote Desktop. | Worth knowing |
Process Name CallerProcessName
| Value | Meaning | Signal |
|---|---|---|
C:\Windows\System32\mmc.exe | Computer Management or another management consoleMicrosoft's own sample. An administrator looked at the group. | Expected |
An agent your management or security tools install | A scheduled or routine checkLearn these per group and filter them if needed. | Noise |
A command shell, a script host or a program in a user's own folders | The group was listed by hand or by a scriptRead the process creation event (4688) for its command line and parent, and the logon (4624) of the session. | Worth knowing |
Volume and noise
Microsoft describes 4799 as an informational event, to be reviewed when needed, and rates the volume of the whole subcategory as low. In practice the volume depends on the software on the computer: administrators opening Computer Management (Microsoft's sample shows mmc.exe listing Administrators) and management, inventory and security agents that check who is a local administrator all write it, some of them on a schedule.
Keeping it manageable
- As Microsoft recommends, watch the enumeration of critical local groups, such as Administrators and Backup Operators, by
TargetSid(S-1-5-32-544,S-1-5-32-551), which does not change with the display language. - Learn which
CallerProcessNamevalues list each group on your computers, and filter those known programs at collection time if volume is the limit; keep everything else. - Match
CallerProcessIdwith the New Process ID of the process creation event (4688) on the same computer, where Audit Process Creation is enabled, to see the command line and the parent process. - Look at bursts: one account or process listing the same group on many computers within minutes is a sweep across the network, not routine administration.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4799</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>13826</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>WKS042.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="TargetUserName">Administrators</Data>
<Data Name="TargetDomainName">Builtin</Data>
<Data Name="TargetSid">S-1-5-32-544</Data>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
<Data Name="SubjectUserName">alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x2c4e81</Data>
<Data Name="CallerProcessId">0x1a2c</Data>
<Data Name="CallerProcessName">C:\Windows\System32\mmc.exe</Data>
</EventData>
</Event>Attacks this event reveals
No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).
Frequently asked questions
Why is there no 4799 when I list group members in Active Directory Users and Computers?
Microsoft notes that 4799 is not generated when group members are listed with that snap-in. The event covers local groups on the computer that writes it. For domain groups, lookups through the Security Account Manager on a domain controller appear as 4661 under Audit SAM; lookups over LDAP need an auditing entry on the group and show as 4662.
Which Windows versions write 4799?
Microsoft lists Windows 10 and Windows Server 2016 as the minimum versions. Older versions do not write it.
Should I alert on 4799?
Not on every event: management tools and agents list local groups all the time. Microsoft recommends watching the critical local groups, such as Administrators and Backup Operators. Alert on programs you have not seen listing those groups before, and on one account listing the same group on many computers in a short time.