In this article:
Objective
Prerequisites
Steps to follow
Validation and confirmation
Tips
Related topics and articles
Objective
This article explains how to enable auditing to capture modifications related to Group Managed Service Accounts (gMSAs) in Active Directory. It details the required auditing policies and configurations to track changes.
Prerequisites
Have administrative privileges to modify Group Policy and Active Directory permissions.
Have domain administrator or equivalent privileges.
Have access to Group Policy Management and Active Directory Users and Computers (ADUC).
Steps to follow
Step 1: Enable advanced auditing policies
Log in to the primary domain controller.
Open the Group Policy Management Editor by typing gpedit.msc in the Run dialog box.
Navigate to:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > DS Access.
Locate Audit Directory Service Changes and enable both Success and Failure.
Click Apply and OK.
Step 2: Set system access control lists for auditing
Log in to the primary domain controller.
Open ADUC by typing dsa.msc in the Run dialog on the domain controller.
Right-click the domain and select Properties.
Navigate to the Security tab and click Advanced.
Switch to the Auditing tab and click Add.
In the Select Principal field, enter Everyone.
Set Type to Success.
In Apply onto, select This object and all descendant objects.
Step 3: Configure permissions for gMSA auditing
Under Permissions to enable, select:
Create msDS-GroupManagedServiceAccount objects (or Create all child objects).
Delete msDS-GroupManagedServiceAccount objects (or Delete all child objects).
To monitor modifications to gMSA attributes:
Set Apply onto: Descendant msDS-GroupManagedServiceAccount objects.
Enable the following permissions:
Write All Properties
Delete
Modify Permissions
Click Apply and OK to save changes.
Validation and confirmation
Check Event Viewer > Security Logs for event ID 5136 (directory service changes).
Verify that modifications to gMSA accounts generate audit entries.
Test by modifying a gMSA attribute and confirming log entries.
Tips
Regularly review audit policies to ensure security compliance.
Configure alerts in ADAudit Plus to detect unauthorized modifications.
Related Topics and Articles
How to create an alert when a gMSA is created