twinlab.list_project_members#

twinlab.list_project_members(project_id, project_owner_email)[source]#

List members of a project with their project roles.

Parameters:
  • project_id (str) – The name of the project in the twinLab cloud.

  • project_owner_email (str) – The email of the project owner.

Returns:

Members of the project grouped by their role.

Return type:

Dict[str, list[str]]

Example

tl.list_project_members("project1", "user1@mail.com")
{
    "owner": ["user1@mail.com"],
    "admin": ["user2@mail.com"],
    "member": ["user3@mail.com, "user4@mail.com"]
}