首页 文章

无法通过SCIM REST API调用将用户添加到WSO2用户存储

提问于
浏览
0

我们计划使用WSO2 Identity Server作为多个网站和应用的身份提供商 . 每当新成员注册我们的网站时,我们将在WSO2 Identity Server中创建一个新用户,然后对用户进行身份验证 . 我打算使用SCIM REST API在WSO2中创建/更新用户 .

通过向此 endpoints 发出GET请求,我能够成功从WSO2中检索用户列表 . 所以访问权限没有问题 .

https://identityserver:9443/wso2/scim/Users

但是当我尝试添加新用户(POST)时,我收到以下错误:

{
  "Errors": [
    {
      "description": "Error in adding the user: mj100@jackson.com to the user store. Cannot access the directory context or user already exists in the system for user :mj100@jackson.com",
      "code": "500"
    }
  ]
}

我的请求有一个有效载荷如下:

{
   "schemas":[
   ],
   "name":{
      "familyName":"Jackson",
      "givenName":"Michael"
   },
   "userName":"mj100@jackson.com",
   "password":"HiMike100",
   "emails":[
      {
         "primary":true,
         "value":"mj100@jackson.com",
         "type":"home"
      }
   ]
}

当我尝试在WSO2 admin(carbon)门户中更新用户时,我收到了类似的错误:

Error while updating profile of abcd@test.com. Error is: One or more attributes you are trying to add/update are not supported by underlying LDAP for user : abcd@test.com

我对如何解决这个问题以及为什么WSO2不允许我既不通过控制台也不通过SCIM API更新用户一无所知 .

我正在使用WSO2 Identity Server 5.1.0

1 回答

相关问题