corestack_ team_ member_ role_ detach
Take a role from a team member.
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
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
{
"name": "corestack_team_member_role_detach",
"arguments": {
"user_id": 1042,
"role": "client-member-full"
}
}If it is refused
| Reason | What to do |
|---|---|
privileged_target | The 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. |
forbidden | Only an owner may take roles away. |
invalid_arguments | On 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_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |
The same task elsewhere
Was this helpful?