goauthentik / goauthentik/authentik

Avatars cannot be dynamically created

Open
#19,587 2 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

### Describe the bug

With new file storage on authentik 2025.12.1 its not possible anymore to dynamically synchronize avatars.

I had script which would download user avatars to `/media/avatars/{USERNAME}.jpeg` (inside container). Then each user would have property `avatar` set to this path. With new storage, those files are not available.

Even when I updated path to new structure `/data/media/public/avatars/{USERNAME}.jpeg` I cannot use those files as avatars, because browser try to fetch them without adding token to URL, which results in 404. If I use authentik file browser, I can view them but only if token is added to URL.

### How to reproduce

1. Create jpg file with user avatar in `/data/media/public/avatars/`
2. Try to set user `avatar` property to the same path
3. Check user avatar in right upper corner - its not showed.

### Expected behavior

Users should be able to set their own avatars not only manually, but also with external sync scripts.

### Screenshots

Image

### Additional context

https://github.com/goauthentik/authentik/discussions/6824#discussioncomment-15490793

### Deployment Method

Docker

### Version

2025.12.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.