Skip to content

Backend: Define API contract for user-grouped data #405

Closed

Description

@BryanttV

Description

Design and document the contract (possibly with an ADR) for the endpoint that will return roles and permissions grouped by user (instead of a flat list).

Changes must support efficient filtering by organization, roles, and scopes, as well as searches by full name, username, or email address.

Figma Design

Possible Development Plan

  • Use canonical endpoint: GET /api/authz/v1/users/ (do not change the /assignments/ response shape).
  • Filter semantics: a user is included if they have ≥1 matching assignment; the nested list shows only matching assignments; assignation_count is the filtered count.
  • Preview: assignments_limit default 3.
  • “View all roles” → GET /users/<username>/assignments/ with the same orgs/roles/scopes.
  • New fields: assignments[], scope_display_name, scope_type.
  • Table sort: user fields only (username, email, full_name).

This is just one possible solution; another decision can be made.

Checklist

  • Define the response JSON shape (user → roles → nested permissions)
  • Document the modifications or creation of new endpoints, possibly in an ADR.
  • Review with the backend team before implementation.

Activity

  1. added
    willow
    on Aug 21, 2026
  2. moved this to Ready for Development in RBAC AuthZ Boardon Aug 21, 2026
  3. changed the title [-]Define API contract for user-grouped data[/-] [+]Backend: Define API contract for user-grouped data[/+] on Aug 21, 2026
  4. self-assigned this
    on Aug 27, 2026
  5. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Sep 1, 2026
  6. moved this from In Progress to Ready for Review in RBAC AuthZ Boardon Sep 2, 2026
  7. moved this from Ready for Review to Done in RBAC AuthZ Boardon Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions