This script adds multiple users by email to a Faculty project. The users need to exist in the platform: it does not invite users.
To use this:
- Create the project you want to invite users to.
- Create a Jupyter server in that project.
- Download
add-users-by-email.py
in the project workspace by running, e.g.
wget 'https://gist.githubusercontent.com/pbugnion/5edc437c1a031f4a28e03d5d16ce4495/raw/add-users-by-email.py'
- Create a file with the emails to add, with one email per line.
- Run
python add-users-by-email.py /PATH/TO/EMAIL_FILE --verbose
to add the users.
Notes:
- If any user is an admin in the project, their role will be overwritten to data scientists.
- Do not include yourself in the list of emails, since this will remove your admin privilege.
- If any emails in the list do not correspond to users, you will see a warning