-
Notifications
You must be signed in to change notification settings - Fork 2
Audit Log
Okke Harsta edited this page Dec 20, 2019
·
1 revision
After every insert, update and delete an entry in written to the table audit_logs
. The following information is captured:
- user_id: The ID of the logged in person during the change
- subject_id: The ID of the person where the change applies for (if any)
- target_type: The name of the domain object where the change is applied for, e.g.
services
- target_id: The ID of the domain object where the change is applied for
- parent_name: The name of the parent object (if any), e.g.
collaborations
when amembership
is created - parent_id: The ID of the parent object (if any)
- action: 1=create, 2=update and 3=delete
- state_before: JSON serialised state before the change, in case of an update only the changed attributes
- state_after: JSON serialised state after the change, in case of an update only the changed attributes
- created_at: Date of change
The audit_logs
API has several endpoint to query the audit logs. For the following object types a History tab is added:
- Organisation
- Collaboration
- Group
- Service
- User keys