- 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.
Announcing our Series C with $110M in total funding. Read more ā.
<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
# 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>"
)
# Substitute the hash of your Project here
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?
