cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to Record or Audit Content downloads/views

kbpair
Champ in-the-making
Champ in-the-making
We are evaluating Alfresco and the following question came up:

Is it possible to keep track of the user who accessed the data (via CIFS, or FTP, or viewing in the GUI)? Or which users downloaded or viewed a particular file.

Maybe one of the properties on the file would contain a list all users who have accessed the file and the timestamp.

I read about some of the audit capabilities but did not specifically see viewing/copying files addressed.

thanks for your help.
7 REPLIES 7

alexander
Champ in-the-making
Champ in-the-making
Alfresco provides "Auditable" aspect, that does exactly the same.

benq
Champ in-the-making
Champ in-the-making
Alexander,

could you please give more info about this "Auditable" aspect?

Would it be possible to trigger a custom action each time a document is opened?

Do you have a link?

Thank you.

benq

dleeuwen
Champ in-the-making
Champ in-the-making
I couldn't find the auditable aspect either. Has it been removed from the enterprise 2.0 version?

Anyway, I attached a template now to see what happens with a document.
The template name is : show_audit.ftl

If you want to use the template you must first enable it in auditconfig.xml and edit the following line and set enabled=true.

<Audit xmlns="http://www.alfresco.org/model/audit/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" enabled="true" auditInternal="false" mode="all">

That was all I think, but correct me if I am wrong.

- Danny

alexander
Champ in-the-making
Champ in-the-making
Hi

"Auditable" aspect is defined in contentModel.xml

It is probably not exposed directly through interface, but you can add it by script (cm:auditable) or make mandatory for your content type:
<mandatory-aspects>
            <aspect>cm:auditable</aspect>
</mandatory-aspects>

Thanks
Alexander

benq
Champ in-the-making
Champ in-the-making
Will this auditable aspect let me run a function I wrote each time a document is opened?

dleeuwen
Champ in-the-making
Champ in-the-making
Alexander, do you have some sample code on how to turn on the auditable aspect? I tried to copy the code from contentmodel.xml in my custommodel.xml but nothing happend. It should be simple, but I can't get it done.

Thanks in advance,
Danny

andy
Champ on-the-rise
Champ on-the-rise
Hi

What you want is audting - to record what is done.
Search for audit on the wiki.

Audit will record access to any public service - including copy, geting content. … It can be configured to audit getting the content of a doc (no one can audit "Andy has read it" unless you have some work flow and you say that you have read it - even then …)

Yes you can get a list of people who accessed the file with dates.

If you want to bind behaviour to type you need policies.
Search for policy and behaviour on the wiki.
Some services, like the node service, expose policies such as beforeCreate.


You can not bind UI actions to this kind of low level stuff.  

Regards

Andy