Substratal Apps Substratal Apps Hub Interface Specifications
GitHub

Help Screens Roles & permissions

User — Roles ROL-04

Assign and remove roles for a user.

Who can use itusers.list (read), roles.manage (write)
Where it is/admin/users/:userId/roles · link: https://hub.substratalapps.com/admin/users/:userId/roles or substratal://admin/users/:userId/roles
Available onWeb (PWA), iOS / iPadOS, Android, Windows, Linux (GNOME), macOS
PhaseMVP

What you can do here

  • Assign — idempotent; 200 already held. Platform role: step-up (GLB-03 Confirm it's you). If the response has mfa_enrollment_required: true, say "{name} needs two-step verification before this role takes effect."
  • Remove — 409 → implicit role. Platform role: step-up

On your platform

AppStatusHow it's built
Web (PWA)—tabpanel (route segment)
iOS / iPadOS—Segment content
AndroidPlannedTab content
Windows—SelectorBar item content
Linux (GNOME)—AdwViewStack page
macOS—Tab content inside detail

Status is reported by each app's repository; — means that app doesn't report it yet.

For developers: API calls

MethodPathWhat it does
GET/users/{id}/rolesList a user's Role assignments (including implicit default_app_role)
POST/users/{id}/roles/{roleId}Assign a Role (idempotent — 200 if already held)
DELETE/users/{id}/roles/{roleId}Remove a Role assignment (idempotent)

Every call sends Substratal-Version: 1. Paths are at the host root, with no /v1.

Full screen specification

Last updated 2026-11-23 · Built 2026-11-24 from 5941f4c · API 1.0.0-draft.36 · Substratal-Version: 1