accounts.admin_required
The endpoint requires workspace admin privileges; the caller's role is insufficient.
accounts.admin_required is returned when the caller is a valid, authenticated workspace member but their role (users.is_admin flag) is false. This is distinct from auth.admin_required, which covers platform-level admin sessions.
The endpoint requires workspace admin or owner role and the caller is a regular member or viewer.
A workspace owner must elevate the caller's role to admin or perform the operation themselves.
{
"error": {
"code": "accounts.admin_required",
"message": "workspace admin role required",
"request_id": "req_01900000abc"
}
}