- 2 Annotators
- 2 Reviewers
- 1 Team Manager
- 1 Admin
<private_key_path>with the path to your private key.<project_hash>with the hash of your Project, output when the Project is created.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Introducing Encord Data Labs. Research at the Frontier.
<private_key_path> with the path to your private key.<project_hash> with the hash of your Project, output when the Project is created.# Import dependencies
from encord.user_client import EncordUserClient
from encord.utilities.project_user import ProjectUserRole
# Authenticate using the path to your private key. Replace \<private_key_path> with the path to your key
user_client = EncordUserClient.create_with_ssh_private_key(
ssh_private_key_path="<private_key_path>",
# For US platform users use "https://api.us.encord.com"
domain="https://api.encord.com",
)
# Substitute the hash of your Project here
project = user_client.get_project("<project_hash>")
# Add two annotators to the Project
project.add_users(
["annotator1@yourdomain.com", "annotator2@yourdomain.com"],
user_role=ProjectUserRole.ANNOTATOR,
)
# Add two reviewers to the Project
project.add_users(
["reviewer1@yourdomain.com", "reviewer2@yourdomain.com"],
user_role=ProjectUserRole.REVIEWER,
)
# Add one Team Manager to the Project
project.add_users(
["team_manager@yourdomain.com"],
user_role=ProjectUserRole.TEAM_MANAGER,
)
# Add one Admin to the Project
project.add_users(
["team_manager@yourdomain.com"],
user_role=ProjectUserRole.ADMIN,
)
Was this page helpful?
