#1326·pocket-id

Feature: Intermediate "User Manager" role between Admin and User

Author: OllornogCreated Feb 20, 2026Updated Sep 19, 2026
### Feature description

User Manager Role

Permission Matrix

Capability | Admin | User Manager | User -- | -- | -- | -- Manage users (create, edit, delete) | ✓ | ✓ | ✗ Manage group memberships | ✓ | ✓ | ✗ Generate login codes / signup tokens | ✓ | ✓ | ✗ Manage OIDC clients | ✓ | ✗ | ✗ Manage API keys | ✓ | ✗ | ✗ Change app configuration | ✓ | ✗ | ✗ Manage other admins | ✓ | ✗ | ✗

Implementation Outline

Backend

  • Extend the user model: isAdmin bool → role enum (admin, user_manager, user) (or similar)
  • Add middleware/guards on existing API endpoints to check the role
  • User Manager gets access to /api/users/* and /api/user-groups/*
  • User Manager is denied access to /api/oidc/*, /api/app-config/*, /api/api-keys/*

Frontend

  • Conditionally render navigation items in /settings based on role
  • User Manager sees "Users" and "Groups" tabs only
  • "OIDC Clients", "Application Configuration", and "API Keys" are hidden and inaccessible

Migration

  • Existing admins remain admins
  • Existing users remain users
  • No breaking change — purely additive
### Pitch ## The Problem Currently, Pocket ID has a binary role model: you're either an **admin** (full access to everything) or a **user** (no admin access at all). In multi-person setups — especially small businesses or homelabs with a few trusted people — this creates an all-or-nothing situation. **Example use case:** I provide managed self-hosted infrastructure for small companies (5–50 employees). Each company gets their own Pocket ID instance. The company's IT contact needs to: - Add/remove employees (users) - Manage group memberships (e.g., who gets access to which OIDC clients) - Generate login codes / signup tokens for new hires But they should **not** be able to: - Create, edit, or delete OIDC clients - Change application configuration (app name, session settings, etc.) - Manage API keys - Modify other admins Right now, I either give them full admin (too much power) or no admin access (they can't manage their own team). The workaround is managing everything myself via the API or Ansible, but that adds unnecessary friction for simple day-to-day user management tasks. ## Why Built-In? I've seen the [[pocket-id-portal](https://github.com/pocket-id/pocket-id-portal)](https://github.com/pocket-id/pocket-id-portal) project which addresses some of this externally via the API, which is great for dashboards. But having the role distinction built into Pocket ID itself would be more robust — actual API-level enforcement, not just UI-level hiding — and would work out of the box without deploying an extra service. I searched existing issues and discussions and didn't find this requested before — apologies if I missed something! ## Questions for Maintainers - Does this align with Pocket ID's "simple and easy-to-use" philosophy, or is it considered scope creep? - Would you prefer a single intermediate role, or a more flexible permission system? - If this is welcome, any pointers on where in the codebase to start? I'd be happy to contribute this as a PR if the concept is welcome. Thanks for building Pocket ID — it's exactly the right balance of simplicity and functionality for self-hosted OIDC.