User
- class labelbox.schema.user.User(client, field_values)[source]
Bases:
DbObject
A User is a registered Labelbox user (for example you) associated with data they create or import and an Organization they belong to.
- updated_at
- Type:
datetime
- created_at
- Type:
datetime
- email
- Type:
str
- name
- Type:
str
- nickname
- Type:
str
- picture
- Type:
str
- is_viewer
- Type:
bool
- is_external_viewer
- Type:
bool
- organization
ToOne relationship to Organization
- Type:
Relationship
- created_tasks
ToMany relationship to Task
- Type:
Relationship
- projects
ToMany relationship to Project
- Type:
Relationship
- remove_from_project(project: Project) None [source]
Removes a User from a project. Only used for project based users. Project based user means their org role is “NONE”
- Parameters:
project (Project) – Project to remove user from
- update_org_role(role: Role) None [source]
Updated the `User`s organization role.
See client.get_roles() to get all valid roles If you a user is converted from project level permissions to org level permissions and then convert back, their permissions will remain for each individual project
- Parameters:
role (Role) – The role that you want to set for this user.