CorefinityCorefinityDocs
Open the Control PanelControl Panel
Database · 6 of 12

corestack_external_db_user_update

Change a database user.

Scope writeAsks you to confirmRuns as a taskNo secrets returnedCoreCluster
On this page

When to use it

Change a database user's access and, for an external user, its limits and require-TLS. The name and the kind never change: to rename a user or move it between internal and external, remove it and add a new one. Send only what changes; an absent argument stays as it is, and null clears a limit.

Raising a user to read-write lets it change and delete data in the environment's database: ask the person first and send confirm_read_write: "read-write". Lowering it to read-only needs no confirmation.

The change applies within a minute. Open sessions keep their old settings until they reconnect. application, the site's own login, is never changed here.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_external_db_user_update with site_id 4211, username oms_reader, max_user_connections 10, max_statement_time 300. (Change a database user.) Tell me what it returned.

Inputs

confirm_read_writestringConfirmation

Raising the user to read_write, the text read-write.

max_statement_timeinteger or null

External users only, seconds; null clears it.

max_user_connectionsinteger or null

External users only; null clears it.

require_tlsboolean

External users only.

scopestring

read_only or read_write.

read_onlyread_write
site_idintegerRequired

At least 1.

usernamestringRequired

The user's name from corestack_external_db_get. Up to 128 characters.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_external_db_user_update",
  "arguments": {
    "site_id": 4211,
    "username": "oms_reader",
    "max_user_connections": 10,
    "max_statement_time": 300
  }
}

If it is refused

ReasonWhat to do
confirm_mismatchRaising the user to read-write without confirm_read_write: "read-write"; nothing changed.
user_not_foundNo user of that name on this environment that can be changed here.
unchangedThe user already has these settings.
invalid_argumentsA limit or TLS for an internal user, or a value out of range; fields names each.
busyAnother change to this environment is applying.
deletedThe site is deleted (in its grace period).
provisioningThe site is still being created.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT