I have setup wso2 identity server with default h2 database configuration. when i tired to access its RemoteUserStoreManagerService.getTenantIdofUser() soap admin service with super tentant admin credentials 'admin/admin', its throws 'access denied' error.I found that error is raised because of 'super tenant' id is not set to zero(0). it has been set as '-1234' at backend. Kindly help in resolving this issue.
As i know, getTenantIdofUser
is a depreciated in WSO2 and it will not work properly. Theoretically, you can not retrieve the tenant id by providing the username. Because username is unique across tenants. There can be same username in two different tenant. As you mentioned, there is some issue in the code as well. Super tenant id must be -1234
. However fixing this issue, would not provide successful response from the getTenantIdofUser
as it is already depreciated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.