From the Audit Trail page in Castor CDMS, you can export a copy of the study's Audit Trail in CSV format.
This export is currently available for studies created after the 2024.3.0.0 release upon request.
If you want to enable the Audit Trail export, please contact Castor Support at support@castoredc.com and provide your Study ID.
File types
The Audit Trail can be exported from Castor CDMS in the following formats:
- CSV
File contents
The following columns are present in the Audit Trail export file:
| event_id | The unique ID (Identifier) of the event |
| triggered_on | The date and time when the event was triggered/performed |
| event_type | The type of the event, see the list below for more details |
| user_id | The unique ID (identifier) of the user who performed the event |
| user_name | The name of the user who performed the event |
| user_email | The email address of the user who performed the event |
| user_role |
The name of the user's role at the site associated with the event (i.e., the site of the participant). This is included only when the role is relevant to the action performed (e.g., during data entry). |
| object_id | The unique ID (identifier) of the object this event relates to, see the list below for more details |
| event_data |
The details related to the event in JSON format Please note that there is a delay in populating the event data column. After the event is triggered, it can take approximately one hour before the event data is present in the export. |
Audit trail events
| Event type | Display name | Description |
| analytics_dashboard_opened | Analytics dashboard opened | A user opened the study's analytics/reporting dashboard. |
| crf_settings_modify | Study settings modified | One or more study-level settings were changed (e.g. general settings, notifications, randomization settings). |
| crf_toggle_live | Study "Is Live" toggle | The study's Live/Test status was toggled (e.g. moved from Test phase to Live/production). |
| form_structure_import_completed | Form structure imported | A form/study structure import (e.g. from a template or file) completed. |
| study_archived | Study archived | The study was archived. |
| study_file_uploaded | Study file uploaded | A file was uploaded to the study's file repository. |
| study_linked | Linked study created | A study-to-study sync link was created, connecting this study as source or target of a data sync. |
| study_opened | Study opened | A user opened / logged into the study. |
| study_sync_completed | Sync from source study completed | A structure/data sync from a linked source study finished. |
| study_sync_started | Sync from source study started | A structure/data sync from a linked source study began. |
| study_unarchived | Study unarchived | A previously archived study was restored/unarchived. |
| study_unlinked | Study unlinked | An existing study sync link was removed. |
| existing_institute_deleted | Site deleted | A site (institute) was removed from the study. |
| institute_changes_saved | Site updated | A site's (institute's) settings were edited. |
| main_institute_switched | Main Site Switched | The study's main/default site was changed. |
| new_institute_created | Site created | A new site (institute) was added to the study. |
| ip_address_added_to_2fa_allowlist | IP address added to 2FA allowlist | An IP address was added to the list exempted from two-factor authentication. |
| ip_address_removed_from_2fa_allowlist | IP address removed from 2FA allowlist | An IP address was removed from the 2FA-exempt allowlist. |
| ip_address_removed_from_whitelist | IP address removed from whitelist | An IP address was removed from the study's login IP allowlist. |
| ip_address_whitelisted | IP address whitelisted | An IP address was added to the study's login IP allowlist. |
| role_access_assigned | User role assignment updated | A user's role assignment was changed. |
| role_access_created | User role assignment added | A role was assigned to a user. |
| role_access_deleted | User role assignment deleted | A role assignment was removed from a user. |
| role_created | Role created | A new custom role was created for the study. |
| role_deleted | Role deleted | A custom role was deleted. |
| role_permissions_updated | Role permissions updated | The set of permissions attached to a role was changed. |
| user_created | Permissions - User created | A new user account was created (typically via invitation acceptance). |
| user_invited_to_study | Permissions - User invited to study | A user was invited to join the study. |
| user_manage_rights_updated | Permissions - Manage permissions updated | A user's "Manage" permissions (administrative capabilities, e.g. MANAGE_SETTINGS, MANAGE_CCR_TEMPLATES) were changed. |
| user_rights_revoked | Permissions - User access revoked | A user's access to the study was revoked (removed). |
| user_rights_update | Permissions - User access updated | A user's access rights/permissions in the study were changed. |
| entity_locked | Entity locked | A generic "entity locked" event (umbrella event covering locking of phases/steps/records/etc. where a more specific event doesn't apply). |
| entity_unlocked | Entity unlocked | A generic "entity unlocked" event, counterpart to entity_locked. |
| field_copied | Field copied | A field was duplicated. |
| field_create | Field created | A new field was added to a form. |
| field_delete | Field deleted | A field was deleted from a form. |
| field_unverified | Field SDV dropped | SDV verification on an individual field value was removed. |
| field_update | Field updated | A field's definition (label, type, validation, etc.) was edited. |
| field_value_decrypted | Field value decrypted | An encrypted field's value was decrypted for viewing by a user. |
| field_values_decrypted_for_export | Field values decrypted for export | Encrypted field values were decrypted as part of generating a data export. |
| field_verified | Field SDV added | An individual field value was marked as source-data-verified (SDV). |
| form_hidden | Form hidden | A form was hidden from a participant's record, typically as the result of a visibility/branching automation. |
| modification_on_verified_entity | Modification on verified entity | Data was edited on an entity (field/form/etc.) that already had SDV verification applied, flagging the change for review. |
| option_created | Option created | A new option/answer choice was added to an option group. |
| option_deleted | Option deleted | An option/answer choice was deleted from an option group. |
| option_group_created | Option group created | A new dropdown/radio/checkbox option group was created. |
| option_group_deleted | Option group deleted | An option group was deleted. |
| option_group_updated | Option group updated | An option group's settings were edited. |
| option_updated | Option updated | An option/answer choice was edited. |
| phase_create | Visit created | A new study phase (visit) was added to the study design. |
| phase_delete | Visit deleted | A study phase (visit) was deleted from the study design. |
| phase_locked | Visit locked | A phase (visit) was locked for a participant, preventing further edits. |
| phase_signed | Visit signed | A phase (visit) was electronically signed off for a participant. |
| phase_unlocked | Visit unlocked | A locked phase (visit) was unlocked, allowing edits again. |
| phase_unsigned | Visit signature dropped | A previously applied signature on a phase (visit) was removed. |
| phase_unverified | Visit verification dropped | SDV verification on a phase (visit) was removed. |
| phase_update | Visit updated | A study phase (visit)'s properties were edited. |
| phase_verified | Visit verified | A phase (visit) was marked as source-data-verified (SDV). |
| searched_by_encrypted_field | Searched by an encrypted field | A user performed a search using an encrypted field as a criterion. |
| step_copied | Form copied | A form (step) was duplicated. |
| step_create | Form created | A new form (step) was added to a phase/visit. |
| step_delete | Form deleted | A form (step) was deleted from the study design. |
| step_locked | Form locked | A form (step) was locked for a participant, preventing further data entry. |
| step_signed | Form signed | A form (step) was electronically signed off. |
| step_unlocked | Form unlocked | A locked form (step) was unlocked. |
| step_unsigned | Form signature dropped | A previously applied signature on a form (step) was removed. |
| step_unverified | Form verification dropped | SDV verification on a form (step) was removed. |
| step_update | Form updated | A form (step)'s properties were edited. |
| step_verified | Form verification added | A form (step) was marked as source-data-verified (SDV). |
| domain_variable_was_created | Domain variable created | A variable was added to a data-standardization domain. |
| domain_variable_was_deleted | Domain variable deleted | A variable was removed from a data-standardization domain. |
| domain_variable_was_updated | Domain variable updated | A domain variable's mapping/settings were edited. |
| domain_was_created | Domain created | A new data-standardization domain (coding/terminology domain) was created. |
| domain_was_deleted | Domain deleted | A data-standardization domain was deleted. |
| domain_was_updated | Domain updated | A data-standardization domain was edited. |
| deregistered_mobile_surveys_from_record | Deregistered mobile surveys from participant | Mobile survey delivery was deregistered/disabled for a participant. |
| email_address_viewed | Email address viewed | A user viewed a participant's (encrypted/masked) email address. |
| oauth_client_deregistered | Participant deregistered client app | A participant removed/unlinked a client application. |
| oauth_client_registered | Participant registered client app | A participant registered/linked a client application (e.g. a mobile app) via OAuth. |
| participant_econsent_link_dropped | Participant link with eConsent was dropped | The link between a CDMS participant record and its corresponding eConsent subject was removed. |
| participant_econsent_link_updated | Participant link with eConsent was updated | The link between a CDMS participant record and its eConsent subject was changed. |
| participant_linked_to_econsent | Participant was linked with eConsent | A CDMS participant record was linked to a corresponding eConsent subject. |
| participant_pin_reset | Participant PIN reset | A participant's PIN code was reset. |
| participant_pin_set | Participant PIN set | A PIN code was set for a participant (used e.g. for participant self-service login). |
| participant_signed | Participant signed | A participant-level electronic signature was applied to the record. |
| participant_unsigned | Participant signature dropped | A participant-level electronic signature was removed. |
| record_archive | Participant archived | A participant record was archived. |
| record_ccr_patient_id_changed | Participant CCR patient id changed | The patient ID used to link a participant to their Continuity of Care Record (CCR) report was changed. |
| record_created | Participant created | A new participant record was created in the study. |
| record_deleted | Participant hard delete | A participant record was permanently (hard) deleted. |
| record_email_change | Participant email address updated | A participant's registered email address was changed. |
| record_institute_change | Participant site updated | A participant was moved/reassigned to a different site. |
| record_locked | Participant locked | A participant's entire record was locked, preventing further data entry. |
| record_opened | Participant opened | A user opened a participant's record. |
| record_randomization_reset | Participant randomization reset | A participant's randomization assignment was reset. |
| record_randomized | Participant randomized | A participant was randomized into a treatment/study arm. |
| record_renamed | Participant renamed | A participant's record ID (Participant ID) was changed. |
| record_result | Participant result | The computed result/outcome for a participant record (e.g. via a calculation) was generated or updated. |
| record_subject_status_updated | Participant status updated | A participant's subject status (e.g. screening/enrolled/completed/withdrawn) was changed. |
| record_unarchive | Participant unarchived | A previously archived participant record was restored. |
| record_unlocked | Participant unlocked | A locked participant record was unlocked. |
| report_create | Repeating data created | A new repeating data (report) structure was added to the study design. |
| report_delete | Repeating data deleted | A repeating data (report) structure was deleted. |
| report_field_value_updated | Repeating data instance field value updated | A field value within a repeating data instance was changed. |
| report_instance_archived | Repeating data instance archived | A repeating data instance was archived. |
| report_instance_completed | Repeating data instance completed | A repeating data instance was marked complete. |
| report_instance_created | Repeating data instance created | A new instance (row/occurrence) of repeating data was created for a participant. |
| report_instance_deleted | Repeating data instance deleted | A repeating data instance was deleted. |
| report_instance_locked | Repeating data instance locked | A repeating data instance was locked. |
| report_instance_signed | Repeating data instance signed | A repeating data instance was electronically signed. |
| report_instance_unarchived | Repeating data instance unarchived | A previously archived repeating data instance was restored. |
| report_instance_unlocked | Repeating data instance unlocked | A locked repeating data instance was unlocked. |
| report_instance_unsigned | Repeating data instance signature dropped | A signature on a repeating data instance was removed. |
| report_instance_unverified | Repeating data instance verification dropped | SDV verification on a repeating data instance was removed. |
| report_instance_updated | Repeating data instance updated | A repeating data instance's data was edited. |
| report_instance_verified | Repeating data instance verification added | A repeating data instance was marked as source-data-verified (SDV). |
| report_result | Repeating data instance result | The computed result for a repeating data instance was generated or updated. |
| report_step_copied | Repeating data form copied | A form within a repeating data structure was duplicated. |
| report_step_create | Repeating data form created | A new form was added within a repeating data structure. |
| report_step_delete | Repeating data form deleted | A form within a repeating data structure was deleted. |
| report_step_locked | Repeating data form locked | A form within a repeating data instance was locked. |
| report_step_signed | Repeating data form signed | A form within a repeating data instance was electronically signed. |
| report_step_unlocked | Repeating data form unlocked | A locked form within a repeating data instance was unlocked. |
| report_step_unsigned | Repeating data form signature dropped | A signature on a repeating data form was removed. |
| report_step_unverified | Repeating data form verification dropped | SDV verification on a repeating data form was removed. |
| report_step_update | Repeating data form updated | A form within a repeating data structure was edited. |
| report_step_verified | Repeating data form verification added | A form within a repeating data instance was marked as SDV-verified. |
| report_update | Repeating data updated | A repeating data (report) structure's settings were edited. |
| query_created | Query created | A new data query was raised on a field/entity. |
| query_remark_created | Query remark created | A remark/comment was added to an existing query. |
| query_updated | Query updated | A query's status or content was updated (e.g. answered, closed). |
| data_point_validation_status_update | Validation status updated | The pass/fail status of a triggered validation was updated (Validations V2). |
| data_point_validation_triggered | Validation triggered | A validation rule fired against an entered data point (Validations V2). Available in the filter dropdown only when Validations V2 is enabled for the study. |
| validation_create | Validation created | A new field validation rule was created. |
| validation_create_replace | Validation replaced | An existing field validation rule was replaced with a new version. |
| validation_remove | Validation removed | A field validation rule was removed. |
| sdv_plan_details_were_changed | SDV plan details changed | An SDV plan's general details were edited. |
| sdv_plan_fields_selection_was_changed | SDV plan fields selection changed | The set of fields covered by an SDV plan was changed. |
| sdv_plan_sites_assignment_was_changed | SDV plan sites assignment changed | The sites assigned to an SDV plan were changed. |
| sdv_plan_was_created | SDV plan created | A new source data verification (SDV) plan was created for the study. |
| sdv_plan_was_deleted | SDV plan deleted | An SDV plan was deleted. |
| randomization_settings_modified | Randomization settings modified | The study's randomization configuration was changed. |
| survey_copied | Survey copied | A survey was duplicated. |
| survey_create | Survey created | A new survey was created in the study design. |
| survey_created | Survey created | Legacy duplicate of survey creation, kept for backward compatibility with older data. |
| survey_delete | Survey deleted | A survey was deleted from the study design. |
| survey_instance_completed | Sub-survey of package invitation completed | A sub-survey instance was completed by the respondent. |
| survey_instance_inserted | Sub-survey of package invitation created | A sub-survey instance was created within a survey package invitation. |
| survey_instance_updated | Sub-survey of package invitation updated | A sub-survey instance's data was edited. |
| survey_printed | Survey printed | A survey was printed (e.g. to PDF) by a user. |
| survey_result | Survey result | The computed result for a survey was generated or updated. |
| survey_schedule_create | Survey schedule created | A new survey schedule (automated timing rule for sending surveys) was created. |
| survey_schedule_delete | Survey schedule deleted | A survey schedule was deleted. |
| survey_schedule_update | Survey schedule updated | A survey schedule was edited. |
| survey_step_copied | Survey form copied | A survey form (step) was duplicated. |
| survey_step_create | Survey form created | A new form (step) was added to a survey. |
| survey_step_delete | Survey form deleted | A survey form (step) was deleted. |
| survey_step_update | Survey form updated | A survey form (step) was edited. |
| survey_update | Survey updated | A survey's settings were edited. |
| survey_viewed | Survey package viewed | A survey package was opened/viewed. |
| on_site_epro_survey_package_initiated | On-Site ePRO survey package initiated | An on-site ePRO (electronic patient-reported outcome) survey package session was started, typically on a site-managed device. |
| survey_package_create | Survey package created | A new survey package (a bundle of one or more surveys sent together) was created. |
| survey_package_delete | Survey package deleted | A survey package was deleted. |
| survey_package_instance_archived | Survey package invitation archived | A survey package invitation was archived. |
| survey_package_instance_completed | Survey package invitation completed | A survey package invitation was fully completed. |
| survey_package_instance_created | Survey package invitation created | A survey package invitation was created for a participant. |
| survey_package_instance_deleted | Survey package invitation deleted | A survey package invitation was deleted. |
| survey_package_instance_locked | Survey package invitation locked | A survey package invitation was locked. |
| survey_package_instance_opened | Survey package invitation opened | A participant (or user) opened a survey package invitation. |
| survey_package_instance_unarchived | Survey package invitation unarchived | A previously archived survey package invitation was restored. |
| survey_package_instance_unlocked | Survey package invitation unlocked | A locked survey package invitation was unlocked. |
| survey_package_instance_updated | Survey package invitation updated | A survey package invitation's data/status was edited. |
| survey_package_update | Survey package updated | A survey package's settings were edited. |
| training_survey_package_instance_completed | Training survey package invitation completed | A training/practice survey package invitation was completed (does not count as real study data). |
| castor_connect_availability_notification_sent | Castor Connect availability notification sent | A notification was sent to a participant that new content is available in Castor Connect. |
| castor_connect_expiry_notification_sent | Castor Connect expiry notification sent | A notification was sent warning that a Castor Connect invitation/link is about to expire. |
| castor_connect_invitation_resent | Castor Connect invitation resent | A Castor Connect invitation was resent. |
| castor_connect_invitation_sent | Castor Connect invitation sent | An invitation to use the Castor Connect (participant mobile app) was sent. |
| castor_connect_reminder_notification_sent | Castor Connect reminder notification sent | A reminder notification was sent via Castor Connect. |
| on_site_epro_survey_package_invitation_sent | On-Site ePRO survey package invitation sent | An on-site ePRO survey package invitation was sent/issued. |
| survey_package_invitation_reminder_sent | Survey package invitation reminder sent | A reminder notification for an outstanding survey package invitation was sent. |
| survey_package_invitation_resent | Survey package invitation resent | A survey package invitation was resent. |
| survey_package_invitation_sent | Survey package invitation sent | An invitation email/notification for a survey package was sent to a participant. |
| audit_trail_export_was_completed | Audit trail export completed | A requested audit trail export finished generating. |
| audit_trail_export_was_requested | Audit trail export requested | A user requested an export of the audit trail itself. |
| audit_trail_viewed | Audit trail viewed | A user viewed the audit trail. |
| custom_export_type_was_created | Custom export type created | A new custom export type/template was defined for the study. |
| custom_export_type_was_deleted | Custom export type deleted | A custom export type/template was deleted. |
| custom_export_type_was_updated | Custom export type updated | A custom export type/template was edited. |
| custom_export_was_uploaded | Custom export uploaded | A custom export template/definition file was uploaded. |
| export_create | Export created | A data export was created/generated. |
| export_downloaded | Export downloaded | A user downloaded a generated export file. |
| export_has_expired | Export expired | A previously generated export file expired and is no longer available for download. |
| export_has_failed | Export failed | A requested data export failed to generate. |
| export_was_completed | Export completed | A requested data export finished generating successfully. |
| export_was_requested | Export requested | A user requested a data export be generated. |
| sas_export_finished | SAS export finished | A SAS-format data export job finished. |
| sas_export_started | SAS export started | A SAS-format data export job was started. |
| televisit_calendar_exported | Televisit calendar exported | A televisit was exported to a calendar file (e.g. .ics). |
| televisit_cancelled | Scheduled televisit canceled | A scheduled televisit was cancelled. |
| televisit_clinician_joined | Televisit clinician joined | The clinician/study staff participant joined the televisit call. |
| televisit_clinician_left | Televisit clinician left | The clinician/study staff participant left the televisit call. |
| televisit_completed | Televisit completed | A televisit session was completed. |
| televisit_created | Televisit created | A new televisit (video call) was set up. |
| televisit_participant_joined | Televisit participant joined | The study participant joined the televisit call. |
| televisit_participant_left | Televisit participant left | The study participant left the televisit call. |
| televisit_requested_change | Televisit participant requested change | A participant requested a change (e.g. reschedule) to a televisit. |
| televisit_rescheduled | Televisit edited | A scheduled televisit's date/time or details were changed. |
| televisit_scheduled | Televisit scheduled | A televisit was scheduled for a specific date/time. |
| televisit_started | Televisit started | A televisit session began. |
| signature_statement_changed | Signature statement changed | An electronic signature statement's text was changed. |
| signature_statement_created | Signature statement created | A new electronic signature statement (the attestation text shown when signing) was created. |
| signature_statement_removed | Signature statement removed | An electronic signature statement was removed. |
| comment_created | Comment created | A user added a comment/annotation to the study. |
Role permissions in the exported audit trail
In CDMS, the permissions of a role are stored as a short code in which each character stands for one permission. For example, the code 238 means View, Edit and Export.
The audit trail export is a single audit_trail.csv with the columns event_id, triggered_on, event_type, user_id, user_name, user_email, user_role, object_id, event_data.
Requesting an export
Note: Older studies do not have this feature enabled by default, in case you are interested in it, please reach out to support@castoredc.com
- Navigate to the Audit trail page (available when the user has all Management permissions)
- Click the ‘Actions’ button and then click ‘Export Audit trail’