clockify-cli user

clockify-cli user

List users of a workspace

clockify-cli user [flags]

Examples

$ clockify-cli user
+--------------------------+-------------+--------------+--------+-------------------+
|            ID            |    NAME     |     EMAIL    | STATUS |     TIMEZONE      |
+--------------------------+-------------+--------------+--------+-------------------+
| eeeeeeeeeeeeeeeeeeeeeeee | John Due    | john@due.net | ACTIVE | America/Sao_Paulo |
| ffffffffffffffffffffffff | John JD Due | due@john.net | ACTIVE | America/Sao_Paulo |
+--------------------------+-------------+--------------+--------+-------------------+

$ clockify-cli user --quiet
eeeeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffffff

$ clockify-cli user --email due@john.net
+--------------------------+-------------+--------------+--------+-------------------+
|            ID            |    NAME     |     EMAIL    | STATUS |     TIMEZONE      |
+--------------------------+-------------+--------------+--------+-------------------+
| ffffffffffffffffffffffff | John JD Due | due@john.net | ACTIVE | America/Sao_Paulo |
+--------------------------+-------------+--------------+--------+-------------------+

$ clockify-cli user me --format "{{ .Name }} ({{ .Email }})" --email due@john.net
John JD Due (due@john.net)

Options

  -e, --email string    will be used to filter the workspaces by email
  -f, --format string   golang text/template format to be applied on each workspace
  -h, --help            help for user
  -j, --json            print as json
  -q, --quiet           only display ids

Options inherited from parent commands

      --allow-name-for-id           allow use of project/client/tag's name when id is asked
  -i, --interactive                 will prompt you to confirm/complement commands input before executing the action 
  -L, --interactive-page-size int   will set how many items will be shown on interactive mode (default 7)
      --log-level string            { none | debug | info } set log level (default "none")
  -t, --token string                clockify's token
                                    Can be generated here: https://clockify.me/user/settings#generateApiKeyBtn
  -u, --user-id string              user id from the token
  -w, --workspace string            workspace to be used

SEE ALSO

Auto generated by spf13/cobra on 15-Jun-2024