wso2is - Howto use WSO2 IS SOAP service call targeting only secondary user stores -


How can I target WSO2 IS soap services only against a secondary user store?

For example, I have successfully used the "RemoteUserStoreManagerService" SOAP service to list users. How can I use the SOAP service to target only my secondary store?

  configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem (empty, empty); String service endpoint = SERVER_URL + "RemoteUserStore ManagerService"; RemoteUserStoreManagerServiceStub adminStub = New RemoteUserStoreManagerServiceStub (configContext, serviceEndPoint); Service client client = adminStub._getServiceClient (); Option option = client.getOptions (); Option.setProperty (HTTPConstants.COOKIE_STRING, blank); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator (); Auth.setUsername (USER_NAME); Auth.setPassword (password); Auth.setPreemptiveAuthentication (true); Option.setProperty (org.apache.axis2.transport.http.HTTPConstants.AUTHUSTICATE, auth); Option.setManageSession (true); String [] user = adminStub.listUsers ("*", 10); If (user! = Null) {for (string user: user) {System.out.println ("user name:" + user); }}  

Thanks! Ben

Say that there is a use shop called FOO Must have to do FOO / *

adminStub.listUsers ("FOO / *", 10); Search patterns> When you are using RemoteUserStoreManagerService for listing users in the form of

> user store You can use the prefix prefix to get data from.

If you want to get user code in the FOO user's attribute, then the user name is FOO / asela


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -