recovery: add create_admin_group management command

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-07 21:53:21 +01:00
parent 61b5b36192
commit c4e029ffe2
4 changed files with 48 additions and 3 deletions

View File

@ -0,0 +1,17 @@
---
title: Missing admin group
---
If all of the Admin groups have been deleted, or misconfigured during sync, you can use the following command to gain access back.
Run the following command, where *username* is the user you want to add to the newly created group:
```
docker-compose run --rm server create_admin_group username
```
or, for Kubernetes, run
```
kubectl exec -it deployment/authentik-worker -c authentik -- ak create_admin_group username
```