Skip to content

Add group commands for managing groups - #76

Open
nelsonsilva wants to merge 1 commit into
metabase:mainfrom
nelsonsilva:pr/groups
Open

nelsonsilva wants to merge 1 commit into
metabase:mainfrom
nelsonsilva:pr/groups

Conversation

@nelsonsilva

Copy link
Copy Markdown

Adds mb group list | create | update | delete for user groups, backed by a new group resource in @metabase/client (GET/POST /api/permissions/group, PUT/DELETE /api/permissions/group/:id).

  • list shows each group's id, name and member_count.
  • create and update take --name or a JSON body with exactly a name key, following mb glossary.
  • delete asks for confirmation, or needs --yes when not run from a terminal, through confirmAndDelete.

Membership isn't covered. Groups are often provisioned by SSO or SCIM, so these commands manage only the groups themselves.

Testing

  • bun run test:e2e tests/e2e/group.e2e.test.ts.

Manage permission groups (user groups): list them with their member
counts, create and rename them, and delete them with confirmation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant