...
Managers register users in batch mode using an Excel spreadsheet
Managers register users using a form on the RosettaHub portal
...
...
It mimics the creation of users by a spreadsheet upload. After running the code, users will receive an email from RosettaHub to verify their email and accept the Ts&Cs, once their emails are verified they get automatically processed and allocated a cloud account and receive an email from RosettaHub with their credentials (steps 6 and 7 from the spreadsheet upload process).
Install the Python module zeep
|
Basic User Registration
|
Light Registration
(1) Manager creates users from the RosettaHub portal
...
Install the Python module zeep
from
zeep import
Client
import
os
platform =
|
It mimics the creation of a user from the RosettaHub portal. It does not require users to verify their emails and gives the manager the option of setting a user password and of allocating or not allocating a cloud account to the new member.
All you need to do is run a code similar to the one below by inputting the user's first name, last name, email, password, type, organization, root cloud account uid and initial budget. Your root cloud accounts can be found in the panel My Cloud Accounts
Light User Registration
|
apiKey =
"Your Api Key"
platform.cpocRegisterUserLight(apiKey,"Louise","Roberts","louise.roberts@washington.rosettahub.com","A6tK:L?6rT@2","WASHINGTON","Researcher","u-e4e910fc-7120-11ea-a061-02658a10e012",10,None)