cancel
Showing results for 
Search instead for 
Did you mean: 

Audits Audit REST API

smccrystal
Champ in-the-making
Champ in-the-making

Hi All,

I'm trying to use /audit-applications/{auditApplicationId}/audit-entries with alfresco-access, include values, and (valuesKey='/alfresco-access/login/user').

According to the documentation, this should return all audits of logins in the alfresco-access application.  Instead, it returns all the audits, ignoring (valuesKey='/alfresco-access/login/user').

The path is:

/alfresco/api/-default-/public/alfresco/versions/1/audit-applications/alfresco-access/audit-entries?skipCount=0&omitTotalItems=false&maxItems=100&where=(valuesKey%3D'%2Falfresco-access%2Flogin%2Fuser')&include=values"

It seems like (valuesKey='/alfresco-access/login/user') does not have an effect unless it has a valuesValue to go with it.


Any ideas?

1 REPLY 1

smccrystal
Champ in-the-making
Champ in-the-making

and in the AuditImpl.class, I can see:

if (propertyWalker.getValuesKey() != null && propertyWalker.getValuesValue() != null) {
params.addSearchKey(propertyWalker.getValuesKey(), propertyWalker.getValuesValue());
}

which I guess answers my question.