oxidecomputer / oxidecomputer/omicron

Include group membership and roles in `user_list` endpoint

Open
#9,124 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

Right now user_list only gives us basic user info, so to show users with their groups and roles in the console we have to call group_list and policy_view separately and do the mapping on the client side. Would be much cleaner if it just included a field with the groups and role info with the source (whether it's direct or inherited from a group).

Would cut down on API calls, eliminate the mapping logic we're doing in the console and make the CLI more functional

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the user_list endpoint and comparing its existing response with group_list and policy_view. Determine how the response should represent groups, roles, and whether each assignment is direct or inherited. Done means the endpoint provides this information so clients no longer need the separate calls and mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, authorization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.