我正在调用SCIM2 REST服务来获取基于ID的用户信息,但不会返回所有用户数据。当我调用https://localhost:9444/scim2/Users/8f9d1e34-c340-4ebe-af11-fa0c4575f676
传递用户名和密码(BASIC)时,我会得到以下负载:
{
"emails": [
{
"type": "home",
"value": "test@test.com"
}
],
"meta": {
"created": "2020-10-09T11:29:42.809803400Z",
"location": "https://localhost:9444/scim2/Users/8f9d1e34-c340-4ebe-af11-fa0c4575f676",
"lastModified": "2020-10-09T11:29:42.809803400Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"roles": [
{
"type": "default",
"value": "Internal/everyone"
}
],
"id": "8f9d1e34-c340-4ebe-af11-fa0c4575f676",
"userName": "test"
}
但是此用户具有更多属性,如下所示:
如何返回整个用户数据?
预先感谢
答案 0 :(得分:1)
/Users/{user-id}
端点上的SCIM GET请求将返回在urn:ietf:params:scim:schemas:core:2.0:User
和urn:ietf:params:scim:schemas:extension:enterprise:2.0:User
声明方言下定义的SCIM用户属性(mgt控制台->主菜单->身份选项卡->声明->列表)。如果未将特定属性(即本地声明)映射到SCIM用户属性,则该值将不会在SCIM用户GET响应中返回。
为了将此类本地属性映射到SCIM属性,您可以按照https://is.docs.wso2.com/en/latest/develop/extending-scim2-user-schemas/#extending-the-scim-20-api中的说明进行操作。
此外, 您可以找到SCIM核心用户属性定义here。如果属性返回的特征是