Skip to content

feat: user list and user delete - #87

Open
ReuDa wants to merge 1 commit into
mainfrom
feat/user-list-delete
Open

ReuDa wants to merge 1 commit into
mainfrom
feat/user-list-delete

Conversation

@ReuDa

@ReuDa ReuDa commented Oct 15, 2026

Copy link
Copy Markdown
Member

Adds commands for the platform's two new user endpoints.

  • steadybit user list [--query <text>] [-t json|yaml] (GET /api/users): a table of username, name, email, role, teams, what manages the user (SCIM, or Steadybit) and last login. With -t or --jq it prints the platform's items as they are.
  • steadybit user delete --username <username> [--yes] (DELETE /api/users/{username}): removes a user from the tenant and asks for confirmation on a terminal. A user who is not a member gets its own message. Every other refusal shows the platform's reason: admins can't remove themselves, and users managed by SCIM or an LDAP sync are removed there.

Both need an admin access token. openapi/platform-api.json and api/platform.gen.go are refreshed from the dev spec, which also brings in other dev-only API changes, such as new fields in the experiment list.

Merge after the platform release that brings these endpoints to prod. Until then, api-compatibility fails: it builds against the live prod spec, which does not have getUsers/removeUser yet.

Platform: steadybit/platform#2128 (the endpoints) and steadybit/platform#2135 (managedBy). Card: https://steadybitgmbh.kanbanize.com/ctrl_board/2/cards/13444

Lists the users of the tenant, with role, teams, what manages them and last login, and removes a user from the tenant. Both call the platform's new GET /api/users and DELETE /api/users/{username}; the client is regenerated from the dev spec, which has them.
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