2i2c-org / docs

Documentation for 2i2c community JupyterHubs.
https://docs.2i2c.org
9 stars 17 forks source link

Adding non-admin users with different domain names #59

Closed JILPulvino closed 3 years ago

JILPulvino commented 3 years ago

We would like to add users with non @justiceinnovationlab.org domains and ideally change the log in to github authentication. to make it easier to add future non-admin users.

yuvipanda commented 3 years ago

We can definitely just change it to GitHub. Can you give us the admin's github usernames? If you want to retain the data in current home directories, you can also give us a mapping of current email address -> github username so we can do a migration.

JILPulvino commented 3 years ago

Yep, thank you!

donald.braman@justiceinnovationlab.org -> donaldbraman rory.pulvino@justiceinnovationlab.org -> JILPulvino

JILPulvino commented 3 years ago

Would you also be able to add a regular user (github username cortiz27) with the switch to github?

choldgraf commented 3 years ago

@JILPulvino yep as an administrator you can define whatever username you'd like, as long as it matches the authentication provider you're using. So now that your hub uses GitHub, you can add other github handles via the admin panel, and they'll be added to the hub as users.

See https://2i2c.org/pilot/admin/users.html for some docs on this

JILPulvino commented 3 years ago

This is great, thank you. Clarification - I've added the user I wanted to (cortiz27), but after pulling the master branch, I don't actually see an update to the YAML file reflecting this. Is this because regular users are not defined in the YAML file?

yuvipanda commented 3 years ago

Is this because regular users are not defined in the YAML file?

Yep, that is correct! Only admin users are in the YAML file, everyone else is in a database.

JILPulvino commented 3 years ago

Great, thank you