Create or remove test app users
tzcloud_add_test_end_usersCreate test end users on an application's realm with labels. Remove them with remove: true and end_users or all: true. Pass application and environment. No person or mailbox is needed. Each has <label>@synthetic.turnzero.ai, receives no mail and expires after 48 hours. Open the returned test sign-in page and enter its address. Get the code with tzcloud_read_test_signin_code and enter it. The session is real and your code runs unchanged.
On production or workforce development, a minted token for this call or the sign-in line needs the test_end_users grant. Your account session needs no grant. The test sign-in page under that session needs no minted token. Removal needs no browser approval, clears held codes and ends sessions on every router within sixty seconds. Real end users cannot be removed here. Use tzcloud_delete_end_user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application": "<application>"
},
"name": "tzcloud_add_test_end_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | To delete every test end user of the realm; one of `end_users` and `all` is required, and never both. | |
| labels | No | Required to create: each the local part of a test end user's address at the fixture domain `synthetic.turnzero.ai`; one whose address another end user holds is refused 409 `not_test_end_user`. | |
| remove | No | `true` removes test end users at once, naming `end_users` or `all`. | |
| end_users | No | To delete: the test end users' ids, one of `end_users` and `all` required and never both; an id that is not a test end user of the realm refuses the whole request 409 `not_test_end_user`, and nothing is removed. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | No | Required by both acts, and refused `invalid_request` without it: the environment whose realm you address. |