Fetching audit records from Alfresco
In Alfresco all the actions performed by any user are audited and stored in the Alfresco database. These records can be fetched any time by the admin user. There is web-script exposed which can be used to fetch and delete the audit entries from Alfresco. This can be only performed by admin users. We learned about audit configuration in Chapter 3, Alfresco Configuration.
To fetch the audit records from Alfresco there is a get
service exposed by Alfresco, which can be found at the following URL.
/alfresco/service/api/audit/query/{application}?fromId={fromId}&toId={toId}&fromTime={fromTime}&toTime={toTime}&user={user}&forward={forward}&limit={limit}&verbose={verbose}
The parameters involved are explained as follows:
application
: Audits are divided into different applications. By default everything is underalfresco-access
. So pass the application name asalfresco-access
.fromId&toId
: If you know the audit ID number you can...