Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saidone75/a475b343eff9bb5106794d25451f6791 to your computer and use it in GitHub Desktop.
Save saidone75/a475b343eff9bb5106794d25451f6791 to your computer and use it in GitHub Desktop.
Alfresco audit entries by user name
SELECT
COUNT(*) AS entry_count,
s.string_value AS user_name
FROM
alf_audit_entry a
JOIN
alf_prop_value p ON a.audit_user_id = p.id
JOIN
alf_prop_string_value s ON p.long_value = s.id
GROUP BY
s.string_value
ORDER BY
entry_count DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment