Table of Contents |
---|
Install Ovyka Audit for Crowd
...
From now on the audit page will look like this :
REST API
The audit log data can also be retrieved via a call to the plugin's REST API.
To call the REST API and get the audit log data as CSV, you can use the following (example with cURL) :
Code Block |
---|
curl -XGET -H "Authorization: Basic <base64_encoded_authentication>" 'https://{crowd.url}/crowd/rest/ovcrwaudit/1.0/admin/history/csv/orderby/{orderBy}/order/{order}' |
Info |
---|
Depending on your setup, you may have to remove /crowd after {crowd.url}. |
Example URL :
Code Block |
---|
curl -XGET -H "Authorization: Basic <base64_encoded_authentication>" 'https://my.crowd.com/crowd/rest/ovcrwaudit/1.0/admin/history/csv/orderby/userKey/order/asc' |
The base64 encoded authentication value is the pair username:password (for example for a username myusername and a password mypassword, the pair looks like this : myusername:mypassword and is then encoded as a base64 value (in this example, it would give : bXl1c2VybmFtZTpteXBhc3N3b3Jk ).
Warning |
---|
Note that the user used to call the REST API should have admin rights in crowd instance, because this data is available only to Crowd administrators. |
In the REST API URL, there are two parameters to fill : orderby and order.
Possible values are as follows :
orderby : The field on which the plugin should order results
- date : event date
- userKey : the user having triggered the event
- eventType : the type of the event (user creation, user authenticated, group membership created, ...)
order : In which direction to order results
- asc : Ascending order
- desc : Descending order