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.
NOTE: This activity is only supported on SharePoint 2013 Server with the 64 bit version of Automate and Automate Enterprise. 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 logs 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.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
List sharepoint site "http://server_name/sites/site_name" audit logs and store information in dataset "the_audit_logs".
<AMSHAREPOINT ACTIVITY="list_auditlogs" SITEURL="http://server_name/sites/site_name" RESULTDATASET="the_audit_logs" /> |