databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

Help discrepency for command `databricks groups list`

Open justinTM opened this issue 3 years ago • 0 comments

list command says it shows groups in a workspace, but actually tries to show groups in entire organization, and fails with token scope not high enough.

what i would like to do is list groups i have permission to view, as is possible through the DataBricks web UI.

root@f2e02555adbc:/workspaces/databricks# databricks groups
Usage: databricks groups [OPTIONS] COMMAND [ARGS]...

  Provide utility to interact with Databricks groups.

Options:
  -v, --version   0.16.5
  --debug         Debug Mode. Shows full stack trace on error.
  --profile TEXT  CLI connection profile to use. The default profile is
                  "DEFAULT".
  -h, --help      Show this message and exit.

Commands:
  add-member     Add an existing principal to another existing group.
  create         Create a new group with the given name.
  delete         Remove a group from this organization.
  list           Return all of the groups in a workspace.      <----------------------
  list-members   Return all of the members of a particular group.
  list-parents   Retrieve all groups in which a given user or group is a
                 member.
  remove-member  Removes a user or group from a group.
root@f2e02555adbc:/workspaces/databricks# databricks groups list --help
Usage: databricks groups list [OPTIONS]

  Return all of the groups in an organization.     <-----------------------------

Options:
  --debug         Debug Mode. Shows full stack trace on error.
  --profile TEXT  CLI connection profile to use. The default profile is
                  "DEFAULT".
  -h, --help      Show this message and exit.

justinTM avatar Apr 04 '22 15:04 justinTM