Skip to content
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

Per-User Import Folders #325

Closed
tobire opened this issue Mar 3, 2021 · 4 comments
Closed

Per-User Import Folders #325

tobire opened this issue Mar 3, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request feature request

Comments

@tobire
Copy link

tobire commented Mar 3, 2021

Is your feature request related to a problem? Please describe.
I'm looking to host my family in one papermerge instance with different user accounts. There would be different scanners that are used by different people so they should be able to be logically assigned to an account.

Describe the solution you'd like
Either the possibility for a completely different import folder per user or subfolders per user in the import folder that assign documents to the respective user instead of the superuser.

Describe alternatives you've considered
Bad alternative: Set up a script that takes different input folders and sends the documents to the e-mail that is setup for importing with the secret of the specific user.
Using the REST-API would also be possible, but it would also require additional scripts to take documents from a folder and push them to the API.

Additional context
I Hope it's pretty self explainatory :)

@tobire tobire added enhancement New feature or request feature request labels Mar 3, 2021
@Ryther
Copy link

Ryther commented Mar 4, 2021

Hi, I've already asked this question on reddit. Since then I've created a script and a docker container that run it.
Try it and see if that helps with your case:
Importer Script
Docker Container

@dazx2021
Copy link

ERROR: Service "papermerge-importer-user1" uses an undefined secret "papermergeimporter_auth_token1"
Any idea I got this error messages?

@Ryther
Copy link

Ryther commented Aug 16, 2021

ERROR: Service "papermerge-importer-user1" uses an undefined secret "papermergeimporter_auth_token1"
Any idea I got this error messages?

You need to define the secret in your docker-compose.yaml (as seen in the example) and ensure you have your API token in the file mentioned in the secret

@ciur
Copy link
Owner

ciur commented Jan 1, 2023

This feature is now available via papermerge-cli import /path/to/some/folder command line utility.

papermerge-cli command line utility takes as input a token which is user specific. Imported document, by default, end up in user's inbox (in the user whose token was used for authentication).

@ciur ciur closed this as completed Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

4 participants