Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are many ways to register users to the platform they can be classified under two categories Standard Registration and Light Registration.

Standard Registration:

  1. Users register via a dedicated website

  2. Register users in batch using an Excel spreadsheet

  3. Register a user from the RosettaHub portal

  4. Basic programmatic registration

...

(3) Basic Programmatic registration

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).

...

from zeep import Client

import os

platform = zeep.Client('https://api.rosettahub.com/public/PlatformServices?wsdl').service

session = platform.newSession("{your_login}", "{your_password}", 0 )

registrations = []

registrations.append({"firstName":"Louise","lastName":"Roberts", "email":"louise.roberts@washington.rosettahub.com", "entities",["WASHINGTON-BigData"],"institutionId":"WASHINGTON","regType":"Researcher"})

platform.cpocRegisterUsers(session,registrations,None)

Light Registration

(1) Manager creates users from the RosettaHub portal

(2) Light programmatic registration

...

(2) Light Programmatic Registration (using Python)

To create a new user programmatically all you need is to install the zeep Python module.

...