SharePoint - List Audit Logs
Declaration
<AMSHAREPOINT ACTIVITY="list_auditlogs" SITEURL="text" RESULTDATASET="text" />
Description: Retrieves a list of audit logs for a site collection and populates a dataset with results.
This activity is only supported on SharePoint 2013 Server. Before users administrators can create, edit, delete, and view data they must be granted SharePoint permissions.
Practical Usage
Used to retrieve audit logs for reporting purposes or to perform other SharePoint activities on them. Knowing who is taking what action on which content in your site collection can be critical in helping your organization fulfill its requirements, such as meeting regulatory compliance and records management.
Connection Parameters
Property |
Type |
Required |
Default |
Markup |
Description |
---|---|---|---|---|---|
Site |
Text |
Yes |
(Empty) |
SITE="http://myServer/folder" |
The SharePoint site from which to retrieve audit logs. A SharePoint site is a collection of pages, site templates, lists, and libraries configured for the purpose of achieving an express goal. |
Create and populate dataset with SharePoint audit log(s) information |
Text |
Yes |
(Empty) |
RESULTDATASET="the_audit_logs" |
The name of the dataset to create and populate with information about the retrieved audit logs. |
Example
The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.
Description: List sharepoint site "http://server_name/sites/site_name" audit log(s) and store information in dataset "the_audit_logs".
<AMSHAREPOINT ACTIVITY="list_auditlogs" SITEURL="http://server_name/sites/site_name" RESULTDATASET="the_audit_logs" />