{% extends "base.html" %} {% block title %}{{ target_user.email }} — User detail — {{ config.INSTANCE_NAME }}{% endblock %} {% block content %}
{{ target_user.id }}
Single-select role from the legacy hierarchy (viewer → analyst → km_admin → admin).
Implies expansion at sign-in: a user holding core.admin automatically holds the
lower roles.
Module-registered roles. Toggle to grant or revoke direct access. Changes apply immediately for PAT/headless callers; OAuth users see the new role on next sign-in.
Read-only view of the resolver output: direct grants, group-derived grants, and the fully expanded role set. Useful for debugging "why can/can't this user do X?".