角色权限不足以满足其 SCIM 密钥的要求
了解 RoleTooNarrowForScimKeys 错误(409 冲突)的含义、包含的字段以及返回该错误的端点。
API 返回 409 Conflict,其 type 为 https://lingo.dev/docs/api/errors/role-too-narrow-for-scim-keys。有关所有错误的通用结构,请参阅错误和状态码。
角色 <id> 已分配给 SCIM 密钥“<name>”。SCIM 密钥的角色必须具备 org:manage_team 权限,因此本次编辑不能移除该权限。请先为该密钥分配其他角色,或保留 org:manage_team 权限。
字段 #
除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本根据这些字段生成,客户端也可以据此显示自己的文本。
| 字段 | 类型 |
|---|---|
id | string |
apiKeys | object[] |
apiKeys[].id | string |
apiKeys[].name | string |
示例 #
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"
}返回此错误的端点 #
PATCH /v2/roles/{id}