Permissions for SharePoint Auditing
Before you start creating a monitoring plan to audit your SharePoint farm, plan for the account you'll use for data collection. This account must meet the following requirements. You provide this account in the monitoring plan wizard.
Starting with version 9.96, you can use group Managed Service Accounts (gMSA) as data collecting accounts.
For more information on gMSA, see Use Group Managed Service Account (gMSA) and this Microsoft documentation.
These group Managed Service Accounts should meet the related requirements.
On the target SharePoint farm:
- On the SharePoint server where you deploy the Netwrix Auditor Core Service, the account must be a
member of the local Administrators group.
For more information about Netwrix Auditor Core Services, see the Installation topic. - On the SQL Server hosting SharePoint database: the SharePoint_Shell_Access role.
See the Assigning 'SharePoint_Shell_Access' Role topic for additional information. - If you plan to collect state-in-time data from a SharePoint farm, the account should also meet
the following requirements:
- For site collection processing — lock status for this account must differ from No access
- For web application processing — the following permissions must be assigned to this account:
- Open items
- View items
- Browse directories
- View pages
- Browse user information
- Open
- Enumerate permissions
Assigning 'SharePoint_Shell_Access' Role
Grant the account that runs the Netwrix Auditor for SharePoint Core Service installation the SharePoint_Shell_Access role on the SharePoint SQL Server configuration database. If you select to deploy the Netwrix Auditor for SharePoint Core Service automatically when configuring auditing in Netwrix Auditor, Auditor performs the installation under the account specified for data collection.
-
In your SharePoint server, click Start → Microsoft SharePoint Products
<version>SharePoint Management Shell. -
Execute the following command:
Add-SPShellAdmin –UserName <domain\user>
Define Log On As a Service Policy
When you create a SharePoint monitoring plan, Auditor automatically defines the Log on as a service policy for the Data Processing Account as a local security policy. However, if you have the Deny log on as a service policy defined locally or at the domain level, Auditor resets the local Log on as a service policy. In this case, redefine the Deny log on as a service policy through the Local Security Policy console on your computer, or at the domain level through the Group Policy Management console.
Step 1 – On the computer where Auditor Server is installed, open the Local Security Policy snap-in: navigate to Start > Windows Administrative Tools and select Local Security Policy.
Step 2 – Navigate to Security Settings > Local Policies > User Rights Assignment and locate the Log on as a service policy.
Step 3 – Double-click the Log on as a service policy, and click Add User or Group. Specify the account that you want to define this policy for.
You have now defined the Log on as a service policy.