Skip to content

Improve role management CLI discoverability and onboarding #141

Closed

Description

@neuromechanist

Problem

The role management command exists (nemar admin role <username> <role>) but is not easily discoverable during onboarding. When setting up NEMAR for the first time, the owner needs clear guidance on:

  1. How to assign admin/owner roles to other users
  2. How to view current roles for all users
  3. How to revoke elevated roles

The nemar admin users command shows roles, but the workflow for a new owner onboarding admins could be clearer.

Requirements

  • nemar admin users should clearly display each user's role with color-coding
  • nemar admin role help text should be more descriptive about permission model
  • Add role filtering to nemar admin users (e.g., nemar admin users --role admin)
  • Consider adding nemar admin users --pending shortcut for onboarding workflow
  • Document the owner onboarding workflow in CLI help or docs

Current Implementation

  • nemar admin role <username> <role> exists in src/commands/admin.ts:336
  • Backend endpoint: POST /admin/users/:username/role with owner-only middleware
  • Protections: cannot self-demote, cannot remove last owner, tokens revoked on demotion

Acceptance Criteria

  • New owners can easily discover and use role management commands
  • Role information is clearly visible in user listings
  • Help text explains the permission model (owner > admin > member)

Activity

  1. added
    enhancement
    on Feb 13, 2026
  2. added 2 commits that reference this issue on Feb 13, 2026
    1162baa
    2f59053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions