You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve role management CLI discoverability and onboarding #141
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:
How to assign admin/owner roles to other users
How to view current roles for all users
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
Add role filtering and improve role CLI discoverability
Improve role management CLI discoverability (#144)