Thanks to visit codestin.com
Credit goes to github.com

Skip to content

User Admin can't view the /deployment/users page #15212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spikecurtis opened this issue Oct 24, 2024 · 4 comments · Fixed by #15226
Closed

User Admin can't view the /deployment/users page #15212

spikecurtis opened this issue Oct 24, 2024 · 4 comments · Fixed by #15226
Assignees
Labels
s1 Bugs that break core workflows. Only humans may set this. site Area: frontend dashboard

Comments

@spikecurtis
Copy link
Contributor

I have a user that has role User Admin (and Template Admin if that matters).

When I try to view the /deployment/users page, it responds

Forbidden.
Please check the developer console for more details.

In the browser dev tools, I can see that requests to

  • /api/v2/deployment/config and
  • /api/v2/deployment/stats

are both coming back 403 Forbidden.

@spikecurtis spikecurtis added s1 Bugs that break core workflows. Only humans may set this. site Area: frontend dashboard labels Oct 24, 2024
@coder-labeler coder-labeler bot added bug risk Prone to bugs customer-requested Features requested by enterprise customers. Only humans may set this. labels Oct 24, 2024
@spikecurtis spikecurtis removed bug risk Prone to bugs customer-requested Features requested by enterprise customers. Only humans may set this. labels Oct 24, 2024
@johnstcn
Copy link
Member

I think this is a UI issue. I can replicate the "Forbidden" error with a user having only the "User Admin" role but a request to /api/v2/users returns successfully. Similarly, the following CLI commands work as expected:

# main@095c9797c
$ ./scripts/coder-dev.sh users list
USERNAME   EMAIL                CREATED AT                 STATUS   
admin      [email protected]      2024-10-21T10:58:14+01:00  active   
member     [email protected]     2024-10-21T10:58:24+01:00  dormant  
useradmin  [email protected]  2024-10-24T15:52:34+01:00  active   
$ ./scripts/coder-dev.sh whoami
  Coder is running at http://localhost:3000, You're authenticated as useradmin !

@Parkreiner
Copy link
Member

Yeah, I just tested all combos of user admins and template admins, and am getting the same issue. I'm poking around the UI code now

@spikecurtis
Copy link
Contributor Author

@Parkreiner any idea what version we regressed on?

@Parkreiner
Copy link
Member

Parkreiner commented Oct 25, 2024

@spikecurtis I don't think we've pushed the bug out to anyone yet.
The issue got introduced in this PR, but that was merged in Oct 3. The last non-patch release was Oct 1, and none of our patches since have included that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s1 Bugs that break core workflows. Only humans may set this. site Area: frontend dashboard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants