How to Track and Audit Active Directory Group Membership Changes

Authored by: Support.com Tech Pro Team

1. Introduction

How to Track and Audit Active Directory Group Membership Changes

 

 

2. Step 1: Enable Active Directory Auditing through Group Policy

  1. Type GPMC.MSC in “Run” box and press “Enter.” The “Group Policy Management” console opens up.
  2. Go to “Forest” → “Domains” → “www.domain.com” in the left panel.
  3. Right-click the “Default Domain Policy” or any customized domain-wide policy. (However, we recommend you to create a new GPO, link it to the domain, and edit it).
  4. Select “Edit” to access “Group Policy Management Editor.”
  5. Next, navigate to “Computer Configuration” → “Policies” → “Windows Settings” → “Security Settings” → “Local Policies” → “Audit Policies”.
Figure 1: Group Policy Management Editor
  1. Management and access properties.
  2. Click to select “Define these policy settings” option.
  3. Select both “Success” and “Failure” checkbox to enable audit policy for monitoring successful events.
  4. Now, close “Group Policy Management Editor”.
  5. After closing it, you will be back at “Group Policy Management Console”. Select the GPO that you have modified.
  6. In the “Security” filtering section in the right pane, click “Add” to apply this GPO to all objects of Active Directory. Type “Everyone” in the dialog box that opens up. Click “Check Names” and “OK” to add the value.
  7. Close “Group Policy Management Console”.
  8. It is recommended to update the Group Policy instantly so that new changes can be applied to the entire domain. Run the following command at the Command Prompt or in the “Run” box to update the Group Policies on all domain controllers.gpupdate /force

3. Step 2: Enable Auditing of Active Directory through ADSI edit

  1. In “Start Menu” or in “Control Panel”, “Administrative Tools” and open “ADSI Edit.”
  2. Right-click the ADSI Edit node in the left panel and select “Connect To”.
  3. In the “Connection Settings” window, select “Default Naming Context” in the drop-down menu or select a well-known Naming Context.
  1. Click “OK” to establish the connection to the Default Naming Context of the domain. It is node displayed in the left tree pane, just below the top ADSI Edit node.
  2. Expand “Default Naming Context [dc.www.doamin.com]” and access the top node under it.
  3. Right-click this top node having the fully qualified domain name and click “Properties” in the context menu.
  4. In the properties, switch to “Security” tab and click “Advanced” button to access “Advanced Security Settings for www”.
  5. Switch to “Auditing” tab and click “Add” button to add a new auditing entry. It shows “Auditing Entry for www” window on the screen.
  1. Click “Select a principal” to add“Everyone”.
  2. Select type as “Success” and applies to as “This object and descendant objects.”
  3. Under “Permissions,” select all check boxes by clicking “Full Control,” except following permissions.
  4. Full Control
  5. List contents
  6. Read all properties
  7. Read permissions
  8. Click “OK”.

4. Step 3: Track Group Membership changes through Event Viewer

To track the changes in Active Directory, open “Windows Event Viewer,” go to “Windows logs” → “Security.” Use the “Filter Current Log” in the right pane to find relevant events.

The following are some of the events related to group membership changes.

  • Event ID 4727 indicates a Security Group is created.
  • The following screenshot shows more detail about this event.
  • Event ID 4728 indicates a ‘Member is added to a Security Group’.
  • Event ID 4729 indicates a ‘Member is removed from a Security enabled group.
  • Event ID 4730 indicates a 'Security Group is deleted’.The following screenshot filters all events related to changes in Active Directory Group Memberships.