Skip to main content

Manage JupyterHub users

Control who works in your JupyterHub: with single sign-on (SSO), your users sign in through your provider, and with basic authentication, you create the admin account and approve new users. In both cases, an admin can add users on the Admin page.

Prerequisites​

Sign in with single sign-on​

Single Sign On is selected by default when you create a JupyterHub service. With SSO, JupyterHub has no Sign Up page and no Authorize page.

  1. Open the URL of the service in a browser.
  2. Select the button of your provider, for example Sign in with FPT-ID.
  3. Sign in with your provider account.

The email that you entered in the Single Sign On section when you created the service becomes the JupyterHub admin. Other users sign in with the same provider.

Create the admin account with basic authentication​

When you clear Single Sign On on the create form, JupyterHub uses basic authentication. The first account that you create in JupyterHub must have the username admin. It becomes the administrator account.

  1. Open the URL of the service in a browser.

  2. Select Sign Up.

  3. On the Sign Up page, enter admin in Username.

  4. Enter a Password.

  5. Enter the same password in Confirm password.

  6. Select Create User.

    JupyterHub Sign Up page with the Username, Password, and Confirm password fields and the Create User button

  7. Sign in with the admin username and the password that you set.

Add users from the Admin page​

A user with the Admin role manages users on the Admin page, with SSO or with basic authentication.

The Admin page has a search box, the only active servers filter, and the Manage Groups, Add Users, Start All, Stop All, and Shutdown Hub buttons. The user table has the columns User, Admin, Server, Last Activity, and Actions. Actions holds buttons for the server of each user, such as Start Server and Spawn Page, and Edit User.

  1. Sign in to JupyterHub as a user with the Admin role.

  2. Select Admin in the menu bar.

  3. Select Add Users.

    JupyterHub Admin page with the list of users and the Add Users button

  4. In the Add Users panel, enter the usernames, one per line.

  5. Select Admin to give the new users the Admin role. Leave it cleared to give them the User role.

  6. Select Add Users. To go back without adding users, select Back.

    Add Users panel with three usernames entered one per line, the Admin option, and the Back and Add Users buttons

Approve users who sign up​

With basic authentication, users can create their own account with Create User on the Sign Up page. The account cannot sign in to JupyterHub until an admin authorizes it.

  1. Sign in with the admin account.
  2. Add /hub/authorize to the end of the JupyterHub URL, then open it.
  3. In the Authorization area, select Authorize in the row of the user.

Authorization area page with the Username, Has 2FA?, and Is authorized? columns and the Authorize, Unauthorize, Change password, and Discard actions

The Authorization area lists every user who has an account. Is authorized? shows Yes or No for each user. The actions are:

ActionDescription
AuthorizeLets the user sign in to JupyterHub. A user who is not authorized cannot sign in.
UnauthorizeRevokes the access granted earlier. The user still exists in JupyterHub but can no longer sign in.
Change passwordResets the password of the user, for example when the user forgets it or asks for a reset.
DiscardFor a user who is not authorized yet. Rejects the account and removes the user from the list. To use JupyterHub again, the user creates the account again, or an admin adds the user again.

Next steps​