Loading...
Loading...
Generate audit reports and compliance trails using Harness audit trail data via MCP v2 tools. Track user actions, resource changes, authentication events, and access patterns across accounts, organizations, and projects. Use when asked to audit activity, generate compliance reports, investigate security incidents, review user actions, check change logs, or produce SOC2/GDPR/HIPAA audit evidence. Trigger phrases: audit report, audit trail, compliance audit, user activity log, change log, access audit, security investigation, who changed what, audit events.
npx skill4agent add harness/harness-skills audit-reportharness_listresource_type: "audit_event"harness_describeresource_type: "audit_event"harness_describe(resource_type="audit_event")harness_list(
resource_type="audit_event",
org_id="<org>", # optional - scope to organization
project_id="<project>", # optional - scope to project
search_term="<user or resource>", # optional
page=0,
size=100
)| Action | Description |
|---|---|
| Resource creation |
| Resource modification |
| Resource deletion |
| User authentication |
| Session termination |
| Resource access |
| Pipeline execution |
| Resource Type | Examples |
|---|---|
| Pipeline create, update, delete |
| Secret access, rotation, deletion |
| Connector modifications |
| Service definition changes |
| Environment configuration changes |
| User management actions |
| Role assignment changes |
| Group membership changes |
/audit-report
Generate an audit report for the last 30 days/audit-report
What has john.doe@company.com been doing in the last 7 days?/audit-report
Show all pipeline and environment changes in the production project this month/audit-report
Show all secret access events and privilege changes from last week/audit-report
Generate SOC2 audit evidence for Q4 covering access control and change management| Error | Cause | Solution |
|---|---|---|
| No audit events returned | Time range too narrow or wrong scope | Broaden time range; verify org_id/project_id |
| Access denied | User lacks audit view permissions | Request |
| Pagination incomplete | More events than page size | Increment |
| Search term returns nothing | User ID format mismatch | Try email, username, and display name variants |
sizesize