SharePoint - List audit log(s)

Declaration

<AMSHAREPOINT ACTIVITY="list_auditlogs" SITEURL="text" RESULTDATASET="text" />

Related Topics    

Description

Retrieves a list of audit logs for a site collection and populates a dataset with results.

NOTE: This activity is only supported on SharePoint 2013 Server with the 64 bit version of AutoMate/BPA. Before users and alerting administrators can create, edit, delete, and view data alerts, 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.

Parameters

Connection

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.

 

Description

Error Causes

On Error

Example

NOTE: 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" />