[Missing Documented Feature] Azure AD docs describe group-to-role mapping that the code doesn't implement
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- azure
- Domain
- authentication, documentation
Research direction
Start with docs/integration/azure_ad.md and compare its group mapping and Graph permission guidance with the current login settings described in the issue. Mark the unsupported mapping as planned and document the permissions the current flow needs; done when the page no longer presents unused group mapping or Graph permissions as current requirements.
Written by the indexing model from the issue text.
Description
Summary
docs/integration/azure_ad.md tells admins to:
- create four Entra groups:
CHAOTICA-Administrators,-Managers,-Consultantsand-Sales - set
"GROUPS_CLAIM": "groups"and"MIRROR_GROUPS": True
It also shows ADFS_GROUP_TO_ROLE_MAPPING, create_user_from_claims() and assign_roles_from_claims().
At b7c4f6c, none of this exists outside the docs:
- The settings are hard-coded off:
settings.pysets"GROUPS_CLAIM": Noneand"MIRROR_GROUPS": False, and no environment variable can change either. - There's no mapping: no
ADFS_GROUP_TO_ROLE_MAPPINGand no code that turns claims into roles.
So groups created from the docs do nothing, and every SSO user arrives with the default User role. The page also asks for application-level Graph permissions (User.ReadBasic.All, and optionally Group.Read.All and Directory.Read.All) that the current login flow doesn't use. That makes admins grant more than they need to.
Suggested fix
Either of these:
- Mark the section as planned, not current. Say that only delegated
openid,profile,emailandUser.Readare needed today. - Implement it, with two things to watch:
- Entra sends group object IDs in the
groupsclaim, not names. The mapping should key on IDs, or use app roles (rolesclaim) instead. MIRROR_GROUPSreplaces all of a user's Django groups on every login, which would wipe roles assigned in the app. A dedicated mapping that only adds or removes the mapped global role is safer.
- Entra sends group object IDs in the
- Dominant language
- HTML
- Stars
- 6
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from brainthee/CHAOTICA
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
[Minor UI Bug] Client page shows account manager photos as squares overlapping the round borderOpen
Difficulty 1/5 Under an hour Newbie friendliness 94/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
All issues in brainthee/CHAOTICA
Similar issues
-
Codex使用可 コード
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ryuki-moro/Nicomaru#218 ·
Maintainers usually reply within 3 days
-
bug good first issue priority: P2 status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
RhinoLink-Tech/data-fabric#499 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#801 · 1 comment ·
Maintainers usually reply within 1 day
-
ledger
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Semi-Professional-Organization/pet-shelter#299 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kinqsradio/orbyn-engineering#471 ·