-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exploration of AD-groups #173
Comments
No need for group IDs, the group name is what is in the token. So if your user is in a group called "adminGroup", then it would arrive as "adminGroup" in the token. |
So, if i understand correctly, i can add groupnames to the database, and verify if a usertoken contains a group that is equal to the name in my database? I am confused regarding the statement in the introduction on read the docs: |
It also creates the groups for you. |
So:
if not request.user.groups.filter(name=required_group):
... |
I'll close this, as it's gone stale. @jmartens setting for |
I'm using Azure AD and I can't get the human readable names to come through within the groups claim despite having selected |
@tim-schilling , normally takes a while.. Try again tomorrow. |
Perhaps too many group memberships and a graph uri is supplied? If that is the case specify groups in your application to limit groups returned. On Jan 21, 2022 19:06, Jonas Krüger Svensson ***@***.***> wrote:
@tim-schilling , normalt takes a while.. Try again tomorrow.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@jmartens @JonasKs Looks like
|
I'm writing an intranet application and would like to use our Azure AD SSO integration for users to be granted access.
We have AD-groups project based and would like to use that groupname to restrict access for project members.
If i understood correctly, i cannot use the name of the group but need to use the group GUID.
Is there a way to have Django request the available groups in the AD and create a GUI in django to select the proper group (GUID)?
It would be difficult to maintain to retrieve the GUID manually from the AD to connect new projects to their corresponding AD group.
The text was updated successfully, but these errors were encountered: