Add users to self-hosted Neptune team workspace#
You can register new users manually through the Keycloak administration console.
Alternatively, if your organization uses LDAP, you can import users from there.
Registering users in Keycloak#
Adding users manually#
To add new users, you must be logged in as administrator.
To create a new user:
- In the left sidebar, navigate to Manage → Users.
- Select Add user.
- (required) Enter a username and the user's email address.
- (optional but recommended) Enter the user's first and last names.
- Set Email Verified to ON.
- To finish, click Save.
You can now set a password for the newly created user.
- Navigate to the Credentials tab.
- Enter a password in both Password boxes.
- If the Temporary setting is ON, the user will be asked to change their password upon first login.
- Click Set Password.
Done
You can now communicate the login credentials (username and password) to the user.
After the new user has logged in, you can go to your workspace settings and add the new user as a member.
Importing users from LDAP#
To integrate Keycloak with your LDAP instance, go to
https://<YourNeptuneAddress>/auth/admin/neptune/console/#/create/user-storage/neptune/providers/ldap
After configuring the form, your users will be able to log in to Neptune with LDAP credentials.
To use LDAP configuration as a source for a user list:
- Set Import Users to ON.
- Set Edit Mode to READ_ONLY.
- Set Trust Email to ON.
- Set Username LDAP attribute to something short that easily identifies a particular person (it will be used as the username).
Once you’re done with the LDAP configuration in Keycloak, click Save.
Next, navigate to the Mappers tab and inspect the default mappers. Each points to a particular LDAP attribute. This attribute must exist for every user, or they won't be able to log in.
Adding users to a team workspace#
After the new user has logged in, you can go to your workspace settings and add the new user as a member.
Inviting a user in the Neptune app#
-
Go to Neptune:
-
Navigate to the workspace settings and select People.
-
In the input box, enter either the username or email address of the person to invite.
Choose only one option. If you invite a user by their email address, you have to revoke the invitation before you can add them by the username.
-
From the role dropdown menu, select a workspace role for the user.
- Admins have full configuration rights to the workspace and will automatically have the Owner role in any created projects.
- Members have access according to permission levels set for each project.
-
To add a member to all current projects, check the Add to all projects box.
This grants the member Contributor access to all existing projects. They won't automatically be assigned to new projects that are created later.
-
To finish, click Invite.
Adding users via CLI#
Neptune 2.5
supports a simplified CLI procedure for adding users to your workspace.
To obtain the resources, contact support@neptune.ai. Extract the resources archive on your machine and install the dependencies:
Export your Neptune API token:
Note: The associated account must be a workspace administrator.
Then, run the add_user_to_workspace.py
script using one of the following options:
python add_user_to_workspace.py -w "neptune" --username "username_to_add" \
--email "username_to_add@neptune.ai" --first-name "Jackie" --last-name "Lee"
python add_user_to_workspace.py -w "neptune" --username "username_to_add" \
--password "change_me" --email "username_to_add@neptune.ai" \
--first-name "Jackie" --last-name "Lee"
python add_user_to_workspace.py -w "neptune" --username "username_to_add"