CorefinityCorefinityDocs
Open the Control PanelControl Panel
Team · 10 of 13

corestack_team_member_role_detach

Take a role from a team member.

Scope writeNo secrets returned
On this page

When to use it

Take one role away from a team member: a role you may give them. A company always keeps at least one owner. This is POST /api/roles/detach.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_team_member_role_detach with user_id 1042, role client-member-full. (Take a role from a team member.) Tell me what it returned.

Inputs

rolestringRequired

The role's slug. Up to 255 characters.

user_idintegerRequired

The team member's id (corestack_team_members_list). At least 1.

Example call

tools/call
{
  "name": "corestack_team_member_role_detach",
  "arguments": {
    "user_id": 1042,
    "role": "client-member-full"
  }
}

If it is refused

ReasonWhat to do
privileged_targetThe account's roles are not yours to change. Only a super administrator may change a super administrator's roles. A company owner's roles are changed only by themself, another owner of the same company or Corefinity staff, and the company's primary user's only by themself or staff.
forbiddenOnly an owner may take roles away.
invalid_argumentsOn user_id (nobody you may see: another company's user answers like a missing one), on role (a role you may not take from this member), user (they do not hold it) or roles (it is the company's last owner role).
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