How do Groups in JH work with the AzureAdOAuthenticator?

Hello,

After configuring the AzureAdOAuthenticator to manage the groups, I see them appear in the hub admin console. I was under the impression that I could allow access to JupyterHub based on this group membership, but I can’t seem to figure it out.

My current config:

c.AzureAdOAuthenticator.allowed_groups = {‘MyGroup1’}
c.AzureAdOAuthenticator.manage_groups = True
c.AzureAdOAuthenticator.user_groups_claim = ‘groups’

If I check the Hub’s logs, i see an error message:

Config option allowed_groups not recognized by AzureAdOAuthenticator. Did you mean one of: allowed_users, manage_groups?

The LocalAzureAdOAuthenticator does have this option, but that one seems to apply to local UNIX groups only. Other Authenticators (like the Google and GitHub ones) also seem to have this capability.

Any insights much appreciated!

It’s not in the current release, but a PR has just been merged

You should be able to test it by installing the main branch: pip install git+https://github.com/jupyterhub/oauthenticator.git@main

1 Like