Multi-User Support¶
Immich Stack supports processing multiple users' photos by accepting multiple API keys. This is useful for:
- Family accounts
- Shared photo libraries
- Multiple user management
Configuration¶
To use multiple API keys, separate them with commas in the API_KEY
environment variable:
API_KEY=key1,key2,key3
Or when using Docker:
environment:
- API_KEY=key1,key2,key3
Processing Flow¶
- The stacker will process each user sequentially
- Each user's name and email are logged before processing
- Stacks are created and managed separately for each user
- Logs clearly indicate which user is being processed
Example¶
# .env file
API_KEY=abc123,def456,ghi789
API_URL=http://immich-server:2283/api
When running, you'll see logs like:
Processing user: John Doe (john@example.com)
Found 1000 assets
Created 50 stacks
...
Processing user: Jane Doe (jane@example.com)
Found 800 assets
Created 40 stacks
...
Processing user: Bob Smith (bob@example.com)
Found 1200 assets
Created 60 stacks
...
Best Practices¶
-
API Key Management:
-
Keep API keys secure
- Rotate keys periodically
-
Use different keys for different users
-
Resource Usage:
-
Consider running during off-peak hours
- Monitor system resources
-
Adjust cron interval based on library size
-
Error Handling:
- If one user fails, others will still be processed
- Check logs for any user-specific issues
- Retry failed users if needed