![](/img/trans.png)
[英]how can i log username in wso2 logs in case of failed attempt of a user in wso2 identity server
[英]WSO2 Identity Server: Searching user by their username api not working
是否有任何 API 可用于仅使用用户名获取用户的详细信息?
我已经关注了这个https://is.docs.wso2.com/en/latest/develop/scim2-rest-apis/#/Users%20Endpoint/getUsersByPost
但它不起作用
https://localhost:9443/wso2/scim/Users
https://localhost:9443/scim2/Users
以下是您在 SCIM V2 中的要求的示例请求。
如果你想对/Users/.search
端点使用POST
请求:
curl --location --request POST 'https://localhost:9443/scim2/Users/.search' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \
--data-raw '{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:SearchRequest"
],
"attributes": [
"userName",
"name"
],
"filter": "userName eq userA",
"domain": "PRIMARY",
"startIndex": "1",
"count": "10"
}'
如果要对/Users
端点使用GET
请求:
curl --location --request GET 'https://localhost:9443/scim2/Users?startIndex=1&attributes=userName,Name&count=10&filter=username%20eq%20userA&' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw ''
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.