Invite team member

To invite a team member or multiple team members:

(emails = [ “[email protected]”, “[email protected]” ],
 admin = False)

Get list of team members

To get a list of a team’s members and their pending invitations:

import json
team_metadata = sa.get_team_metadata()
print(json.dumps(team_metadata, indent = 4, sort_keys = True))

This will be the output:

    "pending_invitations": [],
    "users": [
            "allow_run_explore": 1,
            "allow_run_training": 1,
            "email": "[email protected]",
            "first_name": "Admin First Name",
            "id": "[email protected]",
            "last_name": "Admin Last Name",
            "picture": 0,
            "user_role": "Admin"
            "allow_run_explore": 0,
            "allow_run_training": 0,
            "email": "[email protected]",
            "first_name": "Annotator First Name",
            "id": "[email protected]",
            "last_name": "Annotator Last Name",
            "picture": 0,
            "user_role": "Annotator"
    "allow_run_explore": 1,
    "allow_run_training": 1,
    "createdAt": "2021-07-02T10:56:58.000Z",
    "creator_explore": true,
    "creator_id": "[email protected]",
    "creator_license_expired": false,
    "creator_plan": 1,
    "creator_training_hours": true,
    "creator_trial_start_date": null,
    "creator_user_limit_exceeded": false,
    "creator_user_plan": 1,
    "description": "---",
    "id": 12037,
    "is_default": 0,
    "name": "Release Demos",
    "type": 1,
    "updatedAt": "2021-07-02T10:57:15.000Z",
    "user_role": "Admin"

Remove team member

To remove a team member:

sa.delete_contributor_to_team_invitation(email = "[email protected]")

Did this page help you?