Skip to content

Conversation

@tobiasge
Copy link
Contributor

@tobiasge tobiasge commented Sep 8, 2025

With the following configuration

"ROLES": {
    "ROLE1": ["GROUP1", "GROUP2", "GROUP3"],
    "ROLE2": "GROUP1",
    "ROLE3": "GROUP1",
},# Optional, will add user to django group if user is in EntraID group

only users with ROLE3 where added correctly.

This fixes the bug reported in #62 with the method from #45 adapted to the multi-group feature from #54.

Thanks to @edek437 for the bug report and @joshuata for the optimized implementation.

With the following configuration
"ROLES": {
    "ROLE1": ["GROUP1", "GROUP2", "GROUP3"],
    "ROLE2": "GROUP1",
    "ROLE3": "GROUP1",
},  # Optional, will add user to django group if user is in EntraID group
only users with ROLE3 where added correctly.
@wrkyle
Copy link

wrkyle commented Nov 3, 2025

Is this going to be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants