How to Get a List of Active Directory User Accounts Created in Last 24 hours

Download Lepide Active Directory Auditor
Or Deploy With Our Virtual Appliance
In This Article

As an administrator, you need to be always on the lookout for any activity that bucks the usual trends, as they could be indicative of an attack. Users with sufficient administrative rights can create any number of user accounts in Active Directory. These accounts can then be used to manipulate or steal sensitive data. It is therefore crucial to monitor and track account creations regularly to prevent malicious users from stealing sensitive data and conducting fraudulent acts. Let’s take a look at two ways to generate a list of user accounts created in Active Directory.

  1. By Using Native Method
  2. By Using Lepide Active Directory Auditor

Track Active Directory User Accounts Creation using Native Method

Please follow below given steps to enable auditing and audit relevant event logs:

Step1: Configuring the audit policy

  1. Type GPMC.MSC in the “Run” window to open “Group Policy Management” console. You can also access it from “Start Menu” or “Administrative Tools” in Control Panel.
  2. Go to “Forest” → “Domains” → “”→“Domain Controllers”.
  3. Edit any existingor newly create GPO at domain controller level to access “Group Policy Management Editor”. You can create a new GPO and link it to the domain.

    NOTE: Our experts recommend never to edit the “Default Domain Policy” and “Default Domain Controller Policy”.

  4. Navigate to “Computer Configuration” → “Policies” → “Windows Settings” → “Security Settings” → “Local Policies”.
  5. Select “Audit Policy” to view its policies in the right pane
    Group Policy Management Editor - screenshot
    Figure 1: “Group Policy Management Editor”
  6. Right-click “Audit account management”to access its properties.
  7. Click to select “Define these policy settings” checkbox. Select both “Success” and “Failure” checkboxes.
  8. Click “Apply” and “OK” to close “Audit account management Properties” window.
  9. Close “Group Policy Management Editor” window.
  10. In “Group Policy Management Console”, perform the following steps to apply this modified GPO to all Active Directory objects.
    • Select the modified GPO.
    • In the right pane’s “Security Filtering” section, click “Add” and type “Everyone” in the window that opens the screen.
    • Click “Check Names” to validate the value.
    • Click “OK” to add it.
  11. Close “Group Policy Management Console”.
  12. To update the applied policies, run the following command in “Command Prompt”:

    gpupdate /force

Step 2: Tracking newly created accounts using Event Viewer

The event ID for user creation is 4720. Following is a screenshot of the same.

Event ID 4720
Figure 2: Event ID 4720 for User Creation

The steps to spot users created in the last 24-hours in the ‘Event Viewer” are:

  • Open “Windows Event Viewer”.
  • In the console tree, go to “Windows Logs” → “Security”.
  • Click “Filter Current Log”,on the “Action” menu in the right-pane. In case if a filter is already applied, click “Clear Filter”.
  • From “Logged” drop-down list, select the corresponding time period to filter the events based on when they occurred (here we select 24 hours from the list).
  • Type Event ID (4720 for user account creation) in “Event IDs” that you want the filter to display.
    Filter Current Log
    Figure 3: “Filter Current Log” window
  • To apply the filter, click “OK”

    The screenshot given below displays a list of user accounts created in the last 24 hours:

    Event Viewer
    Figure 4: Users created in last 24 hours displayed in Event Viewer

Issues with Native Method

Native auditing is not without its faults. Admins have to collect and organize data from multiple event logs into a readable format to actually be able to detect any changes that appear irregular. The laborious nature of this task makes it difficult to identify potential threats before they manifest.

How to Use Lepide Active Directory Auditor to Get List of Accounts Created

Lepide Active Directory Auditor (part of Lepide Data Security Platform) helps IT admins keep an eye on activities in your Active Directory through real-time alerting and comprehensive reporting. Our solution enables you to perform attribute level filtering and sorting to get in-depth details for each of the reported events.

Following is a screenshot of a report generated using Lepide Active Directory Auditor showing details like who created a user, when it was created and from where:

UserCreated - screenshot
Figure 5: “UserCreated” report

Our robust solution enables attribute level filtering and sorting options which offers in-depth details of each of the reported events.

Download Lepide Active Directory Auditor

Or Deploy With Our Virtual Appliance