Get organization info
Get organization
from labelbox import Client
Client(api_key="<YOUR_API_KEY>")
organization = client.get_organization()
Get IAM integration info
# get all iAM integrations for an organization
organization.get_iam_integrations()
Get invite limit
organization.invite_limit()
Manage users
Invite user
# First make sure that you have enough seats:
organization.invite_limit()
roles = client.get_roles()
print("valid roles: ", roles)
DUMMY_EMAIL = "[email protected]"
invite = organization.invite_user(DUMMY_EMAIL, roles['LABELER'])
print(invite.created_at)
print(invite.organization_role_name)
print(invite.email)
Get users
users = list(organization.users())
print(users[0])
Remove user
organization.remove_user(user)
Manage resource tags
A resource tag is a tag on a project that you can use to filter and organize your projects.
Create resource tag
# Need a name and color for the resource tag
tag = {'text': 'tag-1', 'color': 'ffffff'}
organization.create_resource_tag(tag)
Get resource tags
organization.get_resource_tags()