Workspace
ayx one workspace manages Alteryx One workspaces — listing them, reading and writing configuration, controlling membership, and transferring ownership. Mutating commands are dry-run by default; add --apply to commit.
Workspaces are token-bound
Section titled “Workspaces are token-bound”The Alteryx One PAT you authenticated with determines your active workspace. The x-alteryx-workspace-gid header that some API clients send is ignored server-side — the token rules. You cannot change the active workspace by editing a workspace GID in your profile. Instead, use workspace switch to re-point to any workspace credential you have already authenticated, or run ayx one login for a new workspace if you haven’t authenticated there yet.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
workspace list |
List all workspaces |
workspace current |
Show the workspace for the active profile |
workspace current-configuration |
Read configuration for the current workspace |
workspace current-configuration-schema |
Read the configuration schema for the current workspace |
workspace configuration <id> |
Read configuration for a specific workspace |
workspace configuration-v4 <id> |
Read v4 configuration for a specific workspace |
workspace configuration-schema <id> |
Read the configuration schema for a specific workspace |
workspace save-current-configuration --body <json> |
Write configuration to the current workspace |
workspace save-configuration-v4 <id> --body <json> |
Write v4 configuration to a specific workspace |
workspace delete-current-configuration |
Delete configuration on the current workspace |
workspace delete-configuration <id> |
Delete configuration on a specific workspace |
workspace people |
List members of the active workspace |
workspace admins |
List admins of the active workspace |
workspace switch <id> |
Make an already-authenticated workspace credential active |
workspace invite-users |
Invite users to the active workspace |
workspace remove-user <id> |
Remove a user from the active workspace |
workspace suspend-users |
Suspend users in the active workspace |
workspace unsuspend-users |
Unsuspend users in the active workspace |
workspace transfer |
Transfer active workspace ownership |
workspace transfer-assets --body <json> |
Transfer assets between workspaces |
Listing workspaces
Section titled “Listing workspaces”# All workspaces, paginatedayx one workspace list
# All workspaces in one call (auto-paginate)ayx one workspace list --all
# Limit page sizeayx one workspace list --limit 50
# Machine-readableayx --output json one workspace list --all--all follows all pagination tokens automatically. Use --max-pages <n> to cap how many pages it fetches.
Current workspace
Section titled “Current workspace”# Show the workspace tied to the active profileayx one workspace currentReading configuration
Section titled “Reading configuration”# Configuration for the current workspaceayx one workspace current-configuration
# Configuration schema (to understand what fields are writable)ayx one workspace current-configuration-schema
# Configuration for a specific workspaceayx one workspace configuration <id>
# Configuration schema for a specific workspaceayx one workspace configuration-schema <id>
# v4 configuration for a specific workspaceayx one workspace configuration-v4 <id>Writing configuration
Section titled “Writing configuration”These commands are mutating. Without --apply they return a dry-run envelope showing the request that would be sent.
# Dry-run: preview the requestayx one workspace save-current-configuration --body '{"key":"value"}'
# Commit: write to the current workspaceayx one workspace save-current-configuration --body '{"key":"value"}' --apply
# Write to a specific workspace (v4 endpoint)ayx one workspace save-configuration-v4 \ <id> \ --body '{"key":"value"}' \ --applyPass --profile <name> to target a non-default environment on commands that support it.
Deleting configuration
Section titled “Deleting configuration”Destructive. Add --yes in non-interactive contexts.
# Previewayx one workspace delete-current-configuration
# Commitayx one workspace delete-current-configuration --apply --yes
# Delete configuration on a specific workspaceayx one workspace delete-configuration <id> --apply --yesWorkspace membership
Section titled “Workspace membership”List members and admins
Section titled “List members and admins”ayx one workspace peopleayx one workspace adminspeople queries GET /v4/people and admins queries GET /v4/people?role=admin. Both are scoped to the active workspace via the token — they no longer accept --workspace-id.
Invite users
Section titled “Invite users”# Previewayx one workspace invite-users
# Commitayx one workspace invite-users --applyRemove a user
Section titled “Remove a user”# Previewayx one workspace remove-user <id>
# Commit (non-interactive)ayx one workspace remove-user \ <id> \ --apply --yesSuspend and unsuspend users
Section titled “Suspend and unsuspend users”# Suspendayx one workspace suspend-users --apply --yes
# Unsuspendayx one workspace unsuspend-users --applyTransferring ownership
Section titled “Transferring ownership”# Transfer active workspace ownership (preview)ayx one workspace transfer
# Commitayx one workspace transfer --apply --yes
# Transfer assets between workspacesayx one workspace transfer-assets --body '<json>' --applytransfer-assets requires a JSON --body describing the transfer. Use --profile <name> to target a specific environment.
Workspace mismatch errors
Section titled “Workspace mismatch errors”invite-users, remove-user, suspend-users, unsuspend-users, and transfer operate on the active workspace determined by the token, but accept an optional --workspace-id for confirmation. Passing a --workspace-id that does not match the active workspace will be rejected. Omit the flag and use workspace switch to change the active workspace instead. transfer-assets does not take a --workspace-id at all — it always operates on the current workspace.
Switching workspaces
Section titled “Switching workspaces”workspace switch re-points the CLI to a workspace credential you have already authenticated. It takes effect immediately — no profile reload required.
# Switch to a workspace you've previously logged intoayx one workspace switch <id>If you haven’t authenticated for that workspace yet, the command errors and directs you to run ayx one login for that workspace first. This is the correct path for changing workspaces — you cannot switch by editing the workspace GID directly, because the active workspace is determined by the token, not a config value.
Automation patterns
Section titled “Automation patterns”# Audit: list all workspaces as JSON and extract IDsayx --output json one workspace list --all \ | jq -r '.data[].id'
# Bulk suspend users in the active workspace (CI/script)ayx one workspace suspend-users \ --apply --yes
# Export current workspace config for reviewayx --output json one workspace current-configuration \ | jq '.data'Related
Section titled “Related”- Identity & auth
- Person — user lifecycle across the organization
- Safety model