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

Event ID 4720: A user account was created

Written when a user account is created: for domain accounts on domain controllers, for local accounts on member servers and workstations. Records who created it and the attributes and account control flags it was created with.

Log source
Windows Security log
Detection value
Supporting
Volume
Low
Last updated
Audit subcategory
Audit User Account Management (Account Management, Success)
Logged on
All Windows computers
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 3 tactics
Fields the rules read
UserAccountControl

When it is written

Windows writes 4720 each time a new user object is created. A domain controller writes it for a new domain account; a member server or workstation writes it for a new local account in its own account database. Microsoft lists it as a success event only, so there is no failure variant to collect.

Besides the creator (Subject) and the new account, the event lists the attributes the account was created with: names, paths, password and expiry dates, primary group, delegation list, SID History and the account control flags. The flags appear twice: as the SAM flag value (New UAC Value) and as one %% code per flag that was set (User Account Control). Microsoft's sample events show a domain account created disabled with Password Not Required set, and a 4738 for the same account a moment later that clears that flag: expect follow-up 4738 events while a tool finishes setting up a new account.

How to turn it on

Advanced audit policy subcategory Audit User Account 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 User Account Management
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess and FailureMicrosoft's general and stronger baselines both recommend Success and Failure auditing. Microsoft calls the subcategory useful for watching critical domain accounts (domain admins, service accounts, database admins) and recommends Failure auditing mainly for invalid password change and reset attempts on domain accounts, failed changes of the DSRM password and failed SID History additions.
Member serversSuccess and FailureBoth baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts.
WorkstationsSuccess and FailureBoth baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts.
Check the current setting
auditpol /get /subcategory:"User Account Management"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"User Account Management" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9235-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 created the new account. Event Viewer resolves it to a name when it can.v0
Account NameSubjectUserNameSubjectName of the account that created the new account.v0
Account DomainSubjectDomainNameSubjectDomain of that account, or the computer name for a local account. NT AUTHORITY for well-known principals such as LOCAL SERVICE.v0
Logon IDSubjectLogonIdSubjectLogon ID of the creator's session, in hexadecimal. The logon event of that session (4624) on the same computer carries the same value.v0
Security IDTargetSidNew AccountSID of the new account. Event Viewer resolves it to a name when it can. Its last part is the relative identifier (RID).v0
Account NameTargetUserNameNew AccountName of the new account (shown as Account Name under New Account).v0
Account DomainTargetDomainNameNew AccountDomain of the new account, as a NetBIOS or DNS name. For a local account, the name of the computer the account was created on.v0
SAM Account NameSamAccountNameAttributesLogon name of the new account (sAMAccountName, the pre-Windows 2000 name); for a local account, its name. Microsoft flags an empty value or a dash as an anomaly.v0
Display NameDisplayNameAttributesThe displayName attribute, usually first name, initial and last name. Local accounts put their Full Name here, which is typically (%%1793) for a new local account.v0
User Principal NameUserPrincipalNameAttributesThe userPrincipalName attribute, an internet-style logon name such as bob@corp.example.com. A dash for local accounts. Microsoft notes that a new domain account normally has one.v0
Home DirectoryHomeDirectoryAttributesThe homeDirectory attribute (a UNC path when a home drive is set). A dash when not captured; (%%1793) is typical for a new local account.v0
Home DriveHomePathAttributesThe homeDrive attribute, shown as Home Drive: the drive letter the home directory is mapped to, such as H:. The field name differs from the label.v0
Script PathScriptPathAttributesThe scriptPath attribute, the logon script the account runs at logon. Normally a dash for a new domain account; a value deserves a look.v0
Profile PathProfilePathAttributesThe profilePath attribute, a local or UNC path to a roaming profile. Normally a dash for a new domain account.v0
User WorkstationsUserWorkstationsAttributesThe userWorkstations attribute: the computers the account may log on from, comma separated. Normally a dash; not applicable to local accounts.v0
Password Last SetPasswordLastSetAttributesThe pwdLastSet attribute as a date and time, or (%%1794) when no password has been set yet, which is typical for an account created by hand. Microsoft flags a time in the future as an anomaly.v0
Account ExpiresAccountExpiresAttributesThe accountExpires attribute as a date, or (%%1794), the usual value for a new account.v0
Primary Group IDPrimaryGroupIdAttributesRelative identifier (RID) of the account's primary group, normally 513 (Domain Users, or Users for a local account).v0
Allowed To Delegate ToAllowedToDelegateToAttributesThe msDS-AllowedToDelegateTo attribute: the service principal names the account may present delegated credentials to (constrained delegation). Normally a dash for a new account; a dash for local accounts.v0
Old UAC ValueOldUacValueAttributesAccount flags before the operation, in hexadecimal. Microsoft says it is always 0x0 for a new account.v0
New UAC ValueNewUacValueAttributesAccount flags of the new account in hexadecimal, as the SAM USER_ACCOUNT codes of MS-SAMR (not the userAccountControl bits of Active Directory). For example 0x15 is disabled (0x1), password not required (0x4) and normal account (0x10).v0
User Account ControlUserAccountControlAttributesRead by 1 ruleOne %% code per flag that differs from the old value, separated by spaces, for example %%2080 %%2082 %%2084. Event Viewer shows each code as text such as 'Password Not Required' - Enabled. The codes come from the Windows message file msobjs.dll; Microsoft's event pages do not list them.v0
User ParametersUserParametersAttributesThe userParameters attribute, which holds dial-in settings among others. Shown as <value changed, but not displayed> (%%1792) when set, a dash when not captured, for a new local account.v0
SID HistorySidHistoryAttributesThe sIDHistory attribute, the SIDs the account held in another domain. A dash unless the account was migrated.v0
Logon HoursLogonHoursAttributesThe logonHours attribute: when the account may log on. Typically (%%1793) for a new domain account and All (%%1797) for a new local account.v0
PrivilegeListPrivileges used for the operation, such as SeBackupPrivilege. Usually a dash, because Windows does not always capture them.v0

Values to know

User Account Control UserAccountControl

ValueMeaningSignal
%%2080Account DisabledAccounts are often created disabled and enabled later (4722). Microsoft's sample shows one.Expected
%%2084'Normal Account' - EnabledThe flag of every ordinary user account.Expected
%%2082'Password Not Required' - EnabledMicrosoft's sample events show an account created with this flag and a 4738 for the same account a moment later that clears it (%%2050). If no such 4738 follows, the password length policy does not apply to the account.Noise
%%2091'Encrypted Text Password Allowed' - EnabledStore password using reversible encryption: the password is kept in a form that can be turned back into clear text. The reversible encryption rule looks for this code.Attack signal
%%2096'Don't Require Preauth' - EnabledThe account can get a ticket-granting ticket without proving it knows the password, which exposes data encrypted with its key to offline guessing (AS-REP roasting). Microsoft notes that accounts made with Active Directory Users and Computers do not have it by default.Attack signal
%%2093'Trusted For Delegation' - EnabledUnconstrained delegation. Microsoft notes that it is set by default only on new domain controllers, not on new user accounts. On a domain account, setting it takes the Enable computer and user accounts to be trusted for delegation user right (SeEnableDelegationPrivilege), which Microsoft lists for the Administrators group on domain controllers by default.Attack signal
%%2098'Trusted To Authenticate For Delegation' - EnabledDelegation with protocol transition. Not set by default on accounts made with Active Directory Users and Computers.Attack signal
%%2095'Use DES Key Only' - EnabledLimits the account to DES keys in Kerberos. Not set by default on accounts made with Active Directory Users and Computers.Attack signal
%%2088'Server Trust Account' - EnabledThe domain controller flag. Microsoft says it should never be set on a user account.Attack signal

Primary Group ID PrimaryGroupId

ValueMeaningSignal
513Domain Users (Users for a local account)The usual primary group of a new user account.Expected
512, 516, 518, 519, 526 or 527Domain Admins, Domain Controllers, Schema Admins, Enterprise Admins, Key Admins, Enterprise Key AdminsThe primary group is a group membership, so the new account starts as a member of a privileged group. Microsoft recommends watching every value other than 513.Attack signal
Any other valueAnother primary groupUnusual for a new account; check which group the RID belongs to.Worth knowing

SID History SidHistory

ValueMeaningSignal
-No SID HistoryMicrosoft says the field is always a dash unless the account was migrated from another domain.Expected
One or more SIDsThe account was created with SID HistoryThe account gets the access of those SIDs at logon. Outside a domain migration there is no reason for it; see 4765.Attack signal

Volume and noise

Microsoft rates the volume of the subcategory as low, and 4720 follows the pace of account creation: onboarding, service accounts, identity management and provisioning jobs on domain controllers, and administrators or setup tools creating local accounts on servers and workstations.

On member servers and workstations new local accounts are rare in a managed estate, so each one stands out. On domain controllers, most events come from a small set of provisioning accounts in Subject.

Keeping it manageable

  • Keep every 4720: the volume is low, Microsoft notes that some organizations monitor every one, and the reversible encryption rule reads UserAccountControl of each event.
  • Group domain creations by SubjectUserSid to separate your provisioning jobs from accounts made by hand, and alert on new local accounts on domain-joined servers and administrative workstations, where they are rare.
  • Compare new accounts with what your tools normally set. Microsoft flags as unusual at creation: a PrimaryGroupId other than 513, a value in AllowedToDelegateTo, SidHistory, ScriptPath or UserWorkstations, an OldUacValue other than 0x0, and an AccountExpires other than never.
  • Match accounts by TargetSid and SubjectUserSid rather than by name: names can change (4781), SIDs do not.

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>4720</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>13824</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>DC01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="TargetUserName">bob</Data>
    <Data Name="TargetDomainName">CORP</Data>
    <Data Name="TargetSid">S-1-5-21-1004336348-1177238915-682003330-1121</Data>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
    <Data Name="SubjectUserName">adm-alice</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x3a7f21</Data>
    <Data Name="PrivilegeList">-</Data>
    <Data Name="SamAccountName">bob</Data>
    <Data Name="DisplayName">Bob Example</Data>
    <Data Name="UserPrincipalName">bob@corp.example.com</Data>
    <Data Name="HomeDirectory">-</Data>
    <Data Name="HomePath">-</Data>
    <Data Name="ScriptPath">-</Data>
    <Data Name="ProfilePath">-</Data>
    <Data Name="UserWorkstations">-</Data>
    <Data Name="PasswordLastSet">%%1794</Data>
    <Data Name="AccountExpires">%%1794</Data>
    <Data Name="PrimaryGroupId">513</Data>
    <Data Name="AllowedToDelegateTo">-</Data>
    <Data Name="OldUacValue">0x0</Data>
    <Data Name="NewUacValue">0x15</Data>
    <Data Name="UserAccountControl">%%2080 %%2082 %%2084</Data>
    <Data Name="UserParameters">-</Data>
    <Data Name="SidHistory">-</Data>
    <Data Name="LogonHours">%%1793</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Who created this account?

The Subject fields: `SubjectUserName` and `SubjectUserSid` name the account that created it, and `SubjectLogonId` matches the logon event (4624) of that session on the same computer, which tells you how and from where the creator logged on.

Why does a new account show Password Not Required?

Microsoft's own sample events show a domain account created with 'Password Not Required' - Enabled (%%2082) and a 4738 for the same account a moment later that clears it (%%2050). The flag at creation is normal; an account that keeps it, with no such 4738, does not follow the password length policy.

Is 4720 written for computer accounts?

No. A new computer account is event 4741, which only domain controllers write under Audit Computer Account Management. 4720 is for user objects.

Which values in a 4720 point to an attack?

Flags that Microsoft says accounts made with Active Directory Users and Computers do not have by default, or should never have: reversible password encryption (%%2091), no Kerberos pre-authentication (%%2096), unconstrained delegation (%%2093), Server Trust Account (%%2088). Also a privileged primary group, SID History, or a delegation list at creation. The library's rule on this event reads %%2091; the other flags are read when they change, in 4738 and 4742.

References