Skip to content

Read roles from the API and accept any role slug #47

Closed

Description

@iAziz786

Parent

selfhost-dev/selfhost#3915 (spec). Terms as defined in ADR-0028 and the Access section of CONTEXT.md.

What to build

The CLI lists roles from the API instead of its fixed list of five, and accepts any role slug, so Data Viewer, Viewer, Editor and custom roles work without a CLI release.

Acceptance criteria

  • org roles list prints the roles returned by the roles endpoint.
  • Inviting and changing a member's role accept any slug the API returns.
  • Listing members who hold a role the CLI has never seen does not fail.
  • The fixed role catalogue in the CLI is removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agentSpec or ticket ready for an agent to pick up

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions