security_change_plan
Preview a planned SingleStore security change without applying it: see exact statements, warnings, blockers, confirmation needs, and if the connected user may run it.
Instructions
Read-only preview of one change: the exact statements (any password masked), warnings, blockers (lock-out,
last admin, missing objects) and whether the user must type the object's name to confirm. Runs nothing.
Works without the change privileges (allowed says whether the connected user may run it).
Args:
action: {"action": one of create_user, drop_user, grant, revoke, revoke_all, create_role, drop_role,
create_group, drop_group, grant_role, revoke_role, grant_group, revoke_group, create_pool, alter_pool,
drop_pool, set_default_pool, grant_pool, revoke_pool, plus its fields: user, host, role, group,
grantee_type ("user"/"role"), privileges, database, table, with_grant_option, grant_option, pool,
settings, default_pool}. Never a password.
pending: The changes already in the script basket (same shape), for a change that needs objects they
create (the plan then says ``needs_script``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| pending | No |