Hi Megala, This cannot be done using the existing Admin services. You can do this by using *SCIM2* APIs with cross-tenancy feature. Add following cross-tenant=" true" in identity.xml file. Note that only SCIM2 supports cross tenancy feature.
<Resource context="(.*)/scim2/Groups" secured="true" http-method="all" cross-tenant="true"> Thanks Isura. On Fri, Oct 27, 2017 at 5:48 PM, Megala Uthayakumar <meg...@wso2.com> wrote: > Hi All, > > I am working on implementing a new store REST API, to get all the scopes > relevant to particular application and to filter the scopes based on the > roles of the user. Since this is a store API, I am calling the key > manager's UserAdmin admin service to get the roles of a particular user. > Basic Authentication is used for this purpose and the keyManager's > super-tenant user name and password are extracted from api-manager.xml. > > While doing the testing, I found that, that UserAdmin admin service will > only return the roles of the users from the tenant which the particular > request is authenticated for. @Farasath confirmed the same through offline. > I tried with the RemoteUserStoreManagerService admin service as well. The > results seems to be same. Is there any way to achieve this through the > admin services(i.e. to get the roles of a user from different tenant by > using the super-tenant's credentials)? > > Thanks. > > Regards, > Megala > -- > Megala Uthayakumar > > Software Engineer > Mobile : 0779967122 > -- *Isura Dilhara Karunaratne* Associate Technical Lead | WSO2 Email: is...@wso2.com Mob : +94 772 254 810 <+94%2077%20225%204810> Blog : http://isurad.blogspot.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev