Skip to content

fix: add api_key permissions to User Admin role#39

Closed
cdr-robot wants to merge 1 commit into
mainfrom
fix-user-admin-token-creation
Closed

fix: add api_key permissions to User Admin role#39
cdr-robot wants to merge 1 commit into
mainfrom
fix-user-admin-token-creation

Conversation

@cdr-robot
Copy link
Copy Markdown
Contributor

Summary

  • Adds permissions for User Admins to manage API keys on behalf of other users
  • Fixes issue where User Admins were getting RBAC forbidden errors when creating tokens for other users
  • Aligns implementation with CLI documentation that suggests admins can create tokens for others

Test plan

  • Create a user with the User Admin role
  • Attempt to create a token for another user
  • Verify the token creation succeeds

Workspace: https://demo.coder.com/ben/issue-26

Fixes #26

🤖 Generated with Claude Code

This change allows User Admins to create, read, update, and delete API tokens for other users.
Previously this permission was only available to users with the Owner role.

Fixes #26

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the stale label May 3, 2025
@github-actions github-actions Bot closed this May 6, 2025
@github-actions github-actions Bot deleted the fix-user-admin-token-creation branch November 1, 2025 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ENLabev5Vr-5RpIRvYo1zBlStD0nZnjYg cannot create token for other users as a "User Admin"

1 participant