accounts.remove_denied
The caller lacks permission to remove this workspace member.
accounts.remove_denied is returned when a member removal is attempted by a caller without the required authority. Members may remove themselves (except the last remaining owner); removing other members requires the caller to be an owner or admin.
The caller is not an owner or admin and is trying to remove someone other than themselves. Or the caller is the sole remaining owner trying to self-remove.
Have a workspace owner or admin perform the removal. If the caller is a sole owner trying to leave, promote another member to owner first.
{
"error": {
"code": "accounts.remove_denied",
"message": "insufficient permission to remove this member",
"request_id": "req_01900000abc"
}
}accounts.last_owner for the specific case of removing the last owner.