goauthentik / goauthentik/authentik
Impersonation allows elevating role
- Dominant language
- Python
- Stars
- 25.6k
- Forks
- 2k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 651
Description
I tried to give the user manager permission to impersonate other users. However, this would enable the user manager to impersonate an admin, which could result in a security breach. Is there a way to restrict this, for example by only allowing impersonation of users with the same or lower permissions, or by not allowing admins to be impersonated in general?
**Version and Deployment (please complete the following information):**
- authentik version: 2025.8.3
- Deployment: docker-compose
Contributor guide
Research direction
No file, test, or entry point is named. Start by locating the impersonation permission and role checks in the authentik codebase, then define the expected behavior for same-or-lower permissions and protected administrators; done means an impersonator cannot gain privileges through impersonation and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, python
- Domain
- authorization, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100