Open nate3D opened 2 months ago
Same issue here. I previously had one role assigned to multiple groups, but I wanted to adjust some of them and only encountered this error when I tried to re-assign any role (the same or a different one) to any group.
This needs to be updated in the docs but for the time being this is indeed a limitation
Describe the bug I have a
ldaplogin
role that I am trying to assign to a second top-level group. When trying to add the role assignment via editing the Group, I get back simply an empty error popup and 400 via the API. The Role assignment is not persisted. Using the API browser, I can see a response of "Roles can only be used with a single group." I can't find any reference to this being the case in the documentation online.To Reproduce Steps to reproduce the behavior:
ldaplogin
Group 1
,Group 2
ldaplogin
toGroup 1
and save.ldaplogin
toGroup 2
and save, it will show an empty error popup and the role assignment will not persist.Expected behavior The group is updated as expected with the new Role assignment, or an error message with corresponding documentation on how to properly structure Role <-> Group assignment hierarchy.
Screenshots If applicable, add screenshots to help explain your problem.
Logs
Version and Deployment (please complete the following information):
services: authentik-db: image: postgres:latest environment: PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} healthcheck: test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER}" ] start_period: 20s interval: 30s retries: 5 timeout: 5s networks:
db_data:/var/lib/postgresql/data
authentik-redis: image: redis:latest command: --save 60 1 --loglevel warning networks:
redis_data:/data
authentik: image: ghcr.io/goauthentik/server:latest command: server depends_on: authentik-db: condition: service_healthy authentik-redis: condition: service_started volumes:
XXXXXXXXXX
) || Host(XXXXXXXXXX
)""traefik.http.routers.authentik.middlewares=my-geoblock@docker"
authentik-worker: image: ghcr.io/goauthentik/server:latest command: worker depends_on: authentik-db: condition: service_healthy authentik-redis: condition: service_started volumes:
networks: db_net: driver: bridge core-net: external: true
volumes: db_data: null redis_data: null search_data: null authentik_media: null authentik_templates: null authentik_certs: null