非管理员用户的 WSO2 身份服务器 SCIM /Me 端点问题

时间:2021-05-20 14:26:49

标签: wso2 wso2is scim2

我只想使用 SCIM 2.0 REST API,每个 this guide 都是从 5.4.0 版 WSO2IS 开箱即用的。我使用的是 WSO2 IS 5.7。

当我使用 GET /scim2/Me 用户(HTTP 基本身份验证)admin 时,我收到 200 OK 响应,但是当我尝试使用其他用户调用此 API 时,我收到以下 HTTP 响应:

{
    "schemas": "urn:ietf:params:scim:api:messages:2.0:Error",
    "scimType": "invalidValue",
    "detail": "Required attribute id is missing in the SCIM Object.",
    "status": "400"
}

这里有什么问题?也许我错过了一些有关 WSO2IS SCIM API 使用的基础知识?

1 个答案:

答案 0 :(得分:0)

根据错误消息,您的用户没有 SCIM ID。登录管理控制台并导航 Claims -> List -> wso2.org/claims 并选择 User ID claim。单击该声明的编辑按钮并保存以选中 Supported by Default。 然后,导航到 Users and Roles -> List 并查看用户的个人资料并检查 scim id 是否为空。

如果 SCIM id 为空,则会出现上述错误。

有一个配置 (SCIMEnabled) 可以为用户存储 (https://docs.wso2.com/display/IS570/Configuring+a+Read-write+LDAP+User+Store) 启用 SCIM。导航到 <IS-HOME>/repository/conf/user-mgt.xml 并检查 SCIMEnabled 在您的用户存储中是否设置为 true。

相关问题