Manager user cannot manage users or collections #1196

Closed
opened 2026-02-05 00:15:59 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ghost on GitHub (Jan 17, 2022).

Subject of the issue

User with "manager" role cannot manage the users and collections of one organization.

The manager user can see the manage tab of the organization but as soon as it clicks on it, it gets one error and he is logged out.

Deployment environment

  • vaultwarden version: 1.23.1
  • Install method: docker

  • Clients used: web vault

  • Reverse proxy and version: nginx 1.20.2

  • MySQL/MariaDB or PostgreSQL version: (internal sqllite database)

  • Other relevant details:

Steps to reproduce

Use a "manager" user and click on the "manage" tab of the organization to edit users and collections.

Expected behaviour

Manager user should be able to edit users and collections.

Actual behaviour

As soon as you click, you are logged out.

Troubleshooting data

Logged out as soon as you click on the "manage" tab:
Captura de pantalla de 2022-01-17 12-25-48

Some logs:

[2022-01-17 12:25:38.696][vaultwarden::api::identity][INFO] User xxxxx@yyy.zzz logged in successfully. IP: X.X.X.X
[2022-01-17 12:25:38.696][response][INFO] POST /identity/connect/token (login) => 200 OK
[2022-01-17 12:25:38.733][parity_ws::io][INFO] Accepted a new tcp connection from 172.18.0.2:45014.
[2022-01-17 12:25:38.763][request][INFO] POST /identity/connect/token
[2022-01-17 12:25:38.766][response][INFO] POST /identity/connect/token (login) => 200 OK
[2022-01-17 12:25:38.800][request][INFO] GET /api/sync?excludeDomains=true
[2022-01-17 12:25:38.817][response][INFO] GET /api/sync?<data..> (sync) => 200 OK
[2022-01-17 12:25:39.512][response][INFO] GET /icons/<domain>/icon.png (icon) => 200 OK
[2022-01-17 12:25:39.512][response][INFO] GET /icons/<domain>/icon.png (icon) => 200 OK
[2022-01-17 12:25:47.330][request][INFO] GET /api/collections
[2022-01-17 12:25:47.330][response][INFO] GET /api/collections (get_user_collections) => 200 OK
[2022-01-17 12:25:47.345][request][INFO] GET /api/organizations/b9cdfd6b-a86a-44bd-abb0-3c8279357127/collections
[2022-01-17 12:25:47.346][auth][ERROR] Unauthorized Error: You need to be Admin or Owner to call this endpoint
[2022-01-17 12:25:47.346][response][INFO] GET /api/organizations/<org_id>/collections (get_org_collections) => 401 Unauthorized
Originally created by @ghost on GitHub (Jan 17, 2022). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue User with "manager" role cannot manage the users and collections of one organization. The manager user can see the manage tab of the organization but as soon as it clicks on it, it gets one error and he is logged out. ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1.23.1 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: docker * Clients used: web vault * Reverse proxy and version: nginx 1.20.2 * MySQL/MariaDB or PostgreSQL version: (internal sqllite database) * Other relevant details: ### Steps to reproduce Use a "manager" user and click on the "manage" tab of the organization to edit users and collections. ### Expected behaviour Manager user should be able to edit users and collections. ### Actual behaviour As soon as you click, you are logged out. ### Troubleshooting data Logged out as soon as you click on the "manage" tab: ![Captura de pantalla de 2022-01-17 12-25-48](https://user-images.githubusercontent.com/2324630/149765853-9c3d9728-f993-40c2-b460-26277e43b6bb.png) Some logs: ``` [2022-01-17 12:25:38.696][vaultwarden::api::identity][INFO] User xxxxx@yyy.zzz logged in successfully. IP: X.X.X.X [2022-01-17 12:25:38.696][response][INFO] POST /identity/connect/token (login) => 200 OK [2022-01-17 12:25:38.733][parity_ws::io][INFO] Accepted a new tcp connection from 172.18.0.2:45014. [2022-01-17 12:25:38.763][request][INFO] POST /identity/connect/token [2022-01-17 12:25:38.766][response][INFO] POST /identity/connect/token (login) => 200 OK [2022-01-17 12:25:38.800][request][INFO] GET /api/sync?excludeDomains=true [2022-01-17 12:25:38.817][response][INFO] GET /api/sync?<data..> (sync) => 200 OK [2022-01-17 12:25:39.512][response][INFO] GET /icons/<domain>/icon.png (icon) => 200 OK [2022-01-17 12:25:39.512][response][INFO] GET /icons/<domain>/icon.png (icon) => 200 OK [2022-01-17 12:25:47.330][request][INFO] GET /api/collections [2022-01-17 12:25:47.330][response][INFO] GET /api/collections (get_user_collections) => 200 OK [2022-01-17 12:25:47.345][request][INFO] GET /api/organizations/b9cdfd6b-a86a-44bd-abb0-3c8279357127/collections [2022-01-17 12:25:47.346][auth][ERROR] Unauthorized Error: You need to be Admin or Owner to call this endpoint [2022-01-17 12:25:47.346][response][INFO] GET /api/organizations/<org_id>/collections (get_org_collections) => 401 Unauthorized ```
Author
Owner

@BlackDex commented on GitHub (Jan 17, 2022):

Please please search before you post an issue!

Duplicate of #2151 and #2227 and #2233
And already fixed in #2169

Use the testing tagged image for this fix.

@BlackDex commented on GitHub (Jan 17, 2022): Please please search before you post an issue! Duplicate of #2151 and #2227 and #2233 And already fixed in #2169 Use the `testing` tagged image for this fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1196