Skip to main content
Manage users in an existing user pool, including batch creation, exact-match queries, updates, and deletion
Create the user pool first and sign in with permission to manage it. Every operation requires --user-pool-id. Use global --provider to select Volcengine or BytePlus and the matching account and region

Commands

Field constraints

Usernames must contain 2–64 ASCII letters, digits, dots, underscores, or hyphens. They cannot start with a digit or contain consecutive dots. Names, email addresses, and external identity provider IDs have a 255-character limit. Email addresses must be valid, and phone numbers must use E.164 format. Each create batch accepts 1–1000 users. Updates can clear the name, email, or phone with an empty string, but cannot clear the username

user create

Create 1-1000 users in a user pool (batch; reports per-user success/failure)

user update

Update one user’s fields in a user pool (omitted flags keep current values; an empty string clears —name/—email/—phone)

user delete

Delete one user from a user pool (irreversible)
Deletion is irreversible. Check the user pool and resource IDs. Interactive terminals prompt for confirmation; scripts must pass --yes

user list

List users in a user pool (exact-match filters; token-based pagination)
Pass the returned nextToken to --next-token to read subsequent pages; the CLI does not fetch every page automatically

Batch input file

Create users.json as an array or an object containing a users array. Each user requires preferredUsername; other fields are optional
users.json
Repeated flags are matched by position, and optional fields cannot outnumber usernames. A batch can partially succeed; any failed item produces a nonzero exit status. Retry only failed items

Verify user changes

After creation or update, query the same pool by exact username and inspect the returned user ID and fields:
The username is a lookup and login identifier. Use the returned user ID for updates, deletion, and department membership. For an empty list, check the pool, region, and filter. Use pagination tokens to continue their corresponding list query
Last modified on September 19, 2026