-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
Currently there’s no way to upgrade a user from “user” to “admin” role without direct database access. When /api/v1/user returns "role": "user", administrators cannot promote that user through API or CLI methods.
Current behavior
- Adding user email to
AUTH__OIDC__ADMIN_EMAILSenvironment variable and restarting does not upgrade existing users - The env var appears to only be checked during initial user creation
- Role modification requires direct database access, which may not be available in all deployment scenarios (e.g., DB not on public network)
Expected behavior
Administrators should be able to promote users to higher roles through API endpoints or CLI commands without requiring direct database access.
Proposed solution
- Add API endpoint allowing admins to promote other users to higher roles
- Add endpoint for listing users (useful for identifying users to promote)
- Expose this functionality through agentstack CLI
dosubot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
In dev