Fix #3413: push to users accessing the collections using groups #1505

Closed
opened 2026-04-06 01:58:57 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @matlink on 8/5/2023

I bet it can be done with a single query within the find_by_cipher_and_org function but I didn't managed to get it work (the filter gets complicated, adding groups::access_all.eq(true) works but I can't figure out how to check if the user is in a group that has access to the collection).

Basically it retrieves the users having access to the cipher with a group that either has access to all collections or is bound to the cipher's collection. Then users uuid are used to push changes to clients.

*Originally created by @matlink on 8/5/2023* I bet it can be done with a single query within the `find_by_cipher_and_org` function but I didn't managed to get it work (the `filter` gets complicated, adding `groups::access_all.eq(true)` works but I can't figure out how to check if the user is in a group that has access to the collection). Basically it retrieves the users having access to the cipher with a group that either has access to all collections or is bound to the cipher's collection. Then users uuid are used to push changes to clients.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1505