Skip to content

Person

ayx one person manages users in Alteryx One. It covers the full lifecycle: listing, creating, updating, deleting, and handling password resets. Mutating commands are dry-run by default; add --apply to commit. Password operations and deletes are sensitive — review dry-run output before adding --apply.

Command What it does
person list List all users
person current Show the user tied to the active profile
person count Return the total user count
person detail <id> Show detail for a specific user
person create --body <json> Create a new user
person update <id> --body <json> Replace a user record (PUT)
person patch <id> --body <json> Partially update a user record (PATCH)
person delete <id> Delete a user
person update-password --body <json> Update the current user’s password
person password-reset-request --body <json> Send a password reset email
Terminal window
# Paginated list
ayx one person list
# All users (auto-paginate)
ayx one person list --all
# Limit page size
ayx one person list --limit 100
# Total user count
ayx one person count
# The authenticated caller
ayx one person current
# Specific user
ayx one person detail <id>
# Machine-readable
ayx --output json one person list --all

--profile <name> switches the target environment on commands that support it. Use --max-pages <n> to cap auto-pagination.

Terminal window
# Preview the request
ayx one person create --body '{"email":"<email>","firstName":"...","lastName":"..."}'
# Commit
ayx one person create \
--body '{"email":"<email>","firstName":"...","lastName":"..."}' \
--apply

Pass --profile <name> to create in a specific environment.

update replaces the full record (PUT). patch applies partial changes (PATCH).

Terminal window
# Full replace (preview)
ayx one person update \
<id> \
--body '{"email":"<email>","firstName":"...","lastName":"..."}'
# Commit
ayx one person update \
<id> \
--body '{"email":"<email>","firstName":"...","lastName":"..."}' \
--apply
# Partial update (patch a single field)
ayx one person patch \
<id> \
--body '{"firstName":"NewName"}' \
--apply

Destructive. Review the dry-run output carefully before adding --apply.

Terminal window
# Preview
ayx one person delete <id>
# Commit
ayx one person delete <id> --apply --yes

--yes suppresses the TTY confirmation, required in CI or piped scripts.

Terminal window
# Preview
ayx one person update-password --body '{"currentPassword":"...","newPassword":"..."}'
# Commit
ayx one person update-password \
--body '{"currentPassword":"...","newPassword":"..."}' \
--apply
Terminal window
# Preview
ayx one person password-reset-request --body '{"email":"<email>"}'
# Commit
ayx one person password-reset-request \
--body '{"email":"<email>"}' \
--apply

This sends the reset email to the user. No --yes is required — it is not considered a destructive operation.

Terminal window
# Export all users as JSON for auditing
ayx --output json one person list --all | jq '.data'
# Get a user's ID by email
ayx --output json one person list --all \
| jq -r '.data[] | select(.email == "<email>") | .id'
# Bulk delete: pipe IDs into xargs (dry-run first)
ayx --output json one person list --all \
| jq -r '.data[] | select(.someField == "value") | .id' \
| xargs -I{} ayx one person delete {}
# Add --apply once the dry-run output looks right