1. Resources
  2. Detection sources
  3. Event ID 4799

Event ID 4799: A security-enabled local group membership was enumerated

Written when a process lists the members of a local security group, such as Administrators, with the account and the program that asked. Windows 10 and Windows Server 2016 or later.

Log source
Windows Security log
Detection value
Context
Volume
Low
Last updated
Audit subcategory
Audit Security Group Management (Account Management, Success)
Logged on
All Windows computers
Event versions
0
Detects
Not read by our detection rules yet

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
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccessMicrosoft'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 serversSuccessMicrosoft'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.
WorkstationsSuccessMicrosoft'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.
Check the current setting
auditpol /get /subcategory:"Security Group Management"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Security Group Management" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9237-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

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.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID of the account that asked for the member list. Event Viewer shows the resolved name when it can.v0
Account NameSubjectUserNameSubjectName of the account that asked for the member list. A computer account (ending with $) when a service running as the computer asked.v0
Account DomainSubjectDomainNameSubjectDomain of that account, or the computer name for a local account. NT AUTHORITY for some well-known principals.v0
Logon IDSubjectLogonIdSubjectLogon 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 IDTargetSidGroupSID of the group. Built-in groups have fixed SIDs of the form S-1-5-32-, such as S-1-5-32-544 for Administrators.v0
Group NameTargetUserNameGroupName 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 DomainTargetDomainNameGroupDomain 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 InformationID 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 InformationFull path of the program that listed the members (shown as Process Name).v0

Values to know

Security ID TargetSid

ValueMeaningSignal
S-1-5-32-544AdministratorsThe group Microsoft names first among critical local groups. Whoever is in it controls the computer.Worth knowing
S-1-5-32-551Backup 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-555Remote Desktop UsersShows who may sign in over Remote Desktop.Worth knowing

Process Name CallerProcessName

ValueMeaningSignal
C:\Windows\System32\mmc.exeComputer Management or another management consoleMicrosoft's own sample. An administrator looked at the group.Expected
An agent your management or security tools installA 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 foldersThe 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 CallerProcessName values list each group on your computers, and filter those known programs at collection time if volume is the limit; keep everything else.
  • Match CallerProcessId with 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.

References