Error codes

ROLE_CONFLICT

One person cannot hold these two roles together.

Exit code: 6 · Who acts: You or another person, after you read the current state, or by waiting · From: the CLI, the SDK and the backend

What it means

One person cannot hold these two roles together.

Common causes

  • A department holder cannot also manage budgets, because each role checks the other.

Fix it

  1. Give one of the roles to another person.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "ROLE_CONFLICT",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "ROLE_CONFLICT". Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

No command lists this code. It can still come from the SDK or the backend.

On this page