Unshares a project with a user or team.
Info
Administrators and project owners can unshare any project with any user. If you lack the required permissions to unshare 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 revoked. Can be one of - 'READ' - 'WRITE' - 'OWNER' |
user_name | Optional [str] | None | A username with which the project will be revoked. Typically an email address. |
team_name | Optional [str] | None | A team with which the project will be revoked. |
PROJECT_ID = 'example_project'
client.unshare_project(
project_name=PROJECT_ID,
role='READ',
user_name='[email protected]'
)