Shares a project with a user or team.
Info
Administrators can share any project with any user. If you lack the required permissions to share a project, contact your organization administrator.
Input Paraemter | Type | Default | Description |
---|---|---|---|
project_id | str | None | The unique identifier for the project. |
role | str | None | The permissions role being shared. Can be one of - 'READ' - 'WRITE' - 'OWNER' |
user_name | Optional [str] | None | A username with which the project will be shared. Typically an email address. |
team_name | Optional [str] | None | A team with which the project will be shared. |
PROJECT_ID = 'example_project'
client.share_project(
project_name=PROJECT_ID,
role='READ',
user_name='[email protected]'
)