-
-
Notifications
You must be signed in to change notification settings - Fork 254
Description
Hello clusterzx,
My Paperless NGX is used by multiple users and some of them have to be able to see other user's tags/documents/etc. In Paperless GUI, this is nicely solved by configuring a default group for all created entities, where all needed users are part of.
This is not the case when adding things via API, as paperless-ai is doing, so the end-result is that (for example) other users don't see the tags created by paperless-ai (which uses the token of a specific user).
As far as I understand, the Paperless API allows setting a group for all entities upon creation. I believe this would be an easy fix where paperless-ai would use an environment variable (such as DEFAULT_GROUP or some such, which can contain one or more comma-separated group names, set via .env or via the paperless-ai GUI) when adding new entities to paperless. The required group IDs needed for the actual API create calls can be easily retrieved via API as well.
It would be nice if such a feature would be added, it would make paperless-ai usable for Paperless instances with multiple users part of the same group.
Thanks,
Sylaan