Role too narrow for its SCIM keys

What the RoleTooNarrowForScimKeys error (409 Conflict) means, the fields it carries, and the endpoints that return it.

The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/role-too-narrow-for-scim-keys. See Errors and status codes for the shape every error shares.

Role <id> is assigned to SCIM key "<name>". A SCIM key's role must grant org:manage_team, so this edit cannot remove it. Give that key a different role first, or keep org:manage_team.

Fields #

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
idstring
apiKeysobject[]
apiKeys[].idstring
apiKeys[].namestring

Example #

json
{
  "detail": "Role <id> is assigned to SCIM key \"<name>\". A SCIM key's role must grant org:manage_team, so this edit cannot remove it. Give that key a different role first, or keep org:manage_team.",
  "id": "<id>",
  "apiKeys": [
    {
      "id": "<id>",
      "name": "<name>"
    }
  ],
  "type": "https://lingo.dev/docs/api/errors/role-too-narrow-for-scim-keys",
  "status": 409,
  "title": "Role too narrow for its SCIM keys"
}

Returned by #

  • PATCH /v2/roles/{id}