Skip to content

Departments Commands

departments

View departments.

Usage:

departments [OPTIONS] COMMAND [ARGS]...

Options:

  --log-stderr      Enable logging to stderr.
  --log-file TEXT   Specify file path to write log output to.
  --log-level TEXT  Set level for Incydr client logging.
  --help            Show this message and exit.

departments list

Retrieve departments that have been pushed to Code42 from SCIM or User Directory Sync.

The results can then be used with the watchlists commands to automatically assign users to watchlists by department.

Usage:

departments list [OPTIONS]

Options:

  -f, --format SINGLEFORMAT  Format to print result. One of 'rich', 'json-
                             pretty', or 'json-lines'. If environment has
                             INCYDR_USE_RICH=false set, defaults to 'json-
                             lines', else defaults to 'rich'.
  --name TEXT                Filter by departments with a matching name.
  --log-stderr               Enable logging to stderr.
  --log-file TEXT            Specify file path to write log output to.
  --log-level TEXT           Set level for Incydr client logging.
  --help                     Show this message and exit.