List all enrollments
Returns a list of the organization’s enrollments. Filter by status, courseId or archived. Requires the enrollments:read scope.
–all follows every page, keeping the other flags, and prints all the items as one JSON array, so | jq works; add –ndjson to print one compact item per line as each page arrives.
Scopes: enrollments:read
tmh enrollments list [flags]
--all follow every page and print all the items as one JSON array; --limit sets the page size
--archived string Archived; one of: true, false
--course-id string Course id
--cursor nextCursor The nextCursor from the previous page.
-h, --help help for list
--include priorCertificate Opt-in enrichment. With priorCertificate, an item carries `priorCertificate` (object, or null when the server confirmed there is none). The key is omitted on an item whose answer is unknown, and on every item of the page if the certificate lookup failed; clients must treat a missing key as unknown, never as null; one of: priorCertificate
--limit int How many objects to return, between 1 and 1000. Defaults to 20.
--ndjson with --all, print one compact JSON item per line as each page arrives
--status string Filter on the derived effectiveStatus; one of: INVITED, EMAIL_BOUNCED, STARTED, ASSESSMENT_IN_PROGRESS, CERTIFIED, CANCELLED, EXPIRING, EXPIRED, ARCHIVED
--idempotency-key string Idempotency-Key for the write, instead of a generated one
--live use the "live" profile
--max-retries int times to retry a transient failure of a request that is safe to replay (default 2)
--profile string profile to use: "sandbox" (default) or "live"
--show-headers print each HTTP response's status and headers to stderr
--verbose print method, path, status, latency and request id of each HTTP attempt to stderr