Table of Contents |
---|
Install Ovyka Audit for Crowd
...
crowd_home_directory is not Crowd install directory, it's the directory containing Crowd logs and data, refered to as crowd.home in Atlassian documentation.
Access audit page
Ovyka Audit for Crowd adds an administration page, accessible from the administration menu, as shown below. Open the administration menu (the cog icon), and select Ovyka Audit for Crowd.
Import licence
The first time you access the Audit page, you'll only see licensing section saying you don't have a licence.
Once you purchased and received your licence from Ovyka, you can click the Show details link, then the Edit licence button. You'll see a popup window with an empty licence text field in which you can paste your licence, and click save.
Info |
---|
You may have to reload the page to get updated information about your new imported licence. Just reload (Ctrl+R or Cmd+R, or click again the Ovyka Audit for Crowd in the left hand menu. |
Once a valid licence has been imported, the plugin begins to record events and the audit page lists them.
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