cub audit report
cub audit report
Run an audit report
Synopsis
Run an audit report over the audit events that occurred at or after --since and before --until, both RFC 3339 times. A report is one or more filters over the audit events; the events they match are listed oldest first, each once, with Users and Groups named where they can be read.
Reports: AccessChanges: Every Permission action, member add and remove, role change, Group bot change, a login's change to a User's Groups, and credential create and delete PrivilegedActions: Everything done with the admin role, or by an operator UserActivity (--user): Every action by or on behalf of one User SpaceChanges (--space): Every action on a Space and the entities in it Deletions: Every delete. Each event's Before holds the final state, which -o json and -o yaml show Archives: Every archive. Each event's Before and After hold the fields it changed, which -o json and -o yaml show Denied: Every refused write, with the User who attempted it, or only those of one User GrantUsage (--group): Every action a Group's grant allowed: what to review before removing someone from it
-o csv writes the report as CSV, for a spreadsheet or another tool. The other -o formats work as they do for cub audit list.
Examples:
# Who changed access in November
cub audit report AccessChanges --since 2026-11-01T00:00:00Z --until 2026-12-01T00:00:00Z
# What a Group's grants allowed, as CSV
cub audit report GrantUsage --group 7c61…d308 --since 2026-11-01T00:00:00Z --until 2026-12-01T00:00:00Z -o csv
# Everything one User did, or a bot or automation did for them
cub audit report UserActivity --user jane@example.com --since 2026-11-01T00:00:00Z --until 2026-12-01T00:00:00Z
cub audit report <name> [flags]
Options
--columns strings columns to display; can be repeated or comma-separated (e.g., Slug,Labels.Environment)
--group string the Group to report on, by slug or ID: for GrantUsage. A Group you are not in is named by ID
-h, --help help for report
--no-headers Don't print headers for table output
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>, csv
--quiet No default output.
--since string report the events that occurred at or after this RFC 3339 time (required)
--space string the Space to report on, by slug or ID: for SpaceChanges. A deleted Space is named by ID
--until string report the events that occurred before this RFC 3339 time (required)
--user string the User to report on, by username or ID: for UserActivity, and to narrow Denied. A User no longer in the organization is named by ID
--verbose Detailed output, additive with default output
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub audit - Audit event commands