Skip to main content

tw participants

Run tw participants -h to view supported participant operations.

Manage workspace participants.

note

The operations listed below require workspace OWNER or ADMIN permissions.

tw participants list

List workspace participants.

tw participants list [OPTIONS]

Options

OptionDescriptionRequiredDefault
-t, --typeParticipant type to list (MEMBER, TEAM, COLLABORATOR).
-f, --filterShow only participants that it's name starts with the given word.
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)${TOWER_WORKSPACE_ID}
--pagePage number for paginated results (default: 1)
--offsetRow offset for paginated results (default: 0)
--maxMaximum number of records to display (default: )
tw participants list

Participants for 'my-tower-org/shared-workspace' workspace:

ID | Participant Type | Name | Workspace Role
----------------+------------------+-----------------------------+----------------
45678460861822 | MEMBER | user (user@mydomain.com) | owner

tw participants add

Add a workspace participant.

tw participants add [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --nameTeam name, username or email for existing organization member.
-t, --typeType of participant (MEMBER, COLLABORATOR or TEAM).
--overwriteOverwrite the participant if it already exists.false
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)${TOWER_WORKSPACE_ID}

Run tw participants add -h to view the required and optional fields for adding a participant.

To add a new collaborator to the workspace, use the add subcommand. The default role assigned to a collaborator is Launch.

See [Participant roles][participant-roles] for more information.

tw participants add --name=collaborator@mydomain.com --type=MEMBER

User 'collaborator' was added as participant to 'shared-workspace' workspace with role 'launch'

tw participants update

Update a participant role.

tw participants update [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --nameTeam name, username or email for existing organization member.
-t, --typeType of participant (MEMBER, COLLABORATOR or TEAM).
-r, --roleWorkspace participant role (OWNER, ADMIN, MAINTAIN, LAUNCH, CONNECT or VIEW).
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)${TOWER_WORKSPACE_ID}

To update the role of a Collaborator to ADMIN or MAINTAIN, use the update subcommand:

tw  participants update --name=collaborator@mydomain.com --type=COLLABORATOR --role=MAINTAIN

Participant 'collaborator@mydomain.com' has now role 'maintain' for workspace 'shared-workspace'

tw participants delete

Remove a workspace participant.

tw participants delete [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --nameTeam name, username or email for existing organization member.
-t, --typeType of participant (MEMBER, COLLABORATOR or TEAM).
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)${TOWER_WORKSPACE_ID}

Example

tw participants delete -n user2-name -t MEMBER -w 123456789012345

# Output:
Participant 'user2-name' was removed from 'my-workspace' workspace
note

Requires participant name, type, and workspace ID.

tw participants leave

Leave a workspace.

tw participants leave [OPTIONS]

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)${TOWER_WORKSPACE_ID}

Example

tw participants leave -w organization5/test-workspace

# Output:
You have been removed as a participant from 'test-workspace' workspace