我想知道是否可以通过UserAdmin SOAP接口检索用户声明?我发现添加用户时可以指定用户声明。我也注意到按要求获取用户列表是可能的,但我还没有找到如何检索用户的所有要求的方法。
有什么提示吗?
提前致谢。
您可以尝试使用“ RemoteUserStoreManagerService”。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.um.carbon.wso2.org">
<soapenv:Header/>
<soapenv:Body>
<ser:getUserClaimValues>
<ser:userName>admin</ser:userName>
</ser:getUserClaimValues>
</soapenv:Body>
</soapenv:Envelope>
以上要求将返回您默认配置文件的管理员用户的声明。
编辑
根据评论,您需要新的管理服务的WSDL。
默认情况下,管理服务的WSDL是隐藏的。要更改该行为,请打开,<IS_HOME>/repository/conf/carbon.xml
然后找到HideAdminServiceWSDLs
标签并将其设置为false
。
然后,您可以从URL查看任何管理服务的WSDL。
https://localhost:9443/services/<SERVICE_NAME>?wsdl
在这种情况下
https://localhost:9443/services/RemoteUserStoreManagerService?wsdl
HTH,
达雷
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句