pcMobile has a set of services that allows to manage users without UI.

This service is called ConfigurationService. You will find the wsdl by accessing http://yourserver:yourport/services/ConfigurationService?wsdl.

To use this service you should send an HTTP request to your server with specific parameters.

Here is an example of how to add existing User to Role:

Service ConfigurationService, method addUserToRole(String role, String user), where parameter role is name of role and user - the name of user from zenith.properties you want to add.

Example of request string you can use in browser to call this function:

http://demo.performancecanvas.com/simple?service=ConfigurationService&method=addUserToRole&param0=Administrator&param1=userToAdd

http://demo.performancecanvas.com - host name, should be replaced by your server host

service=ConfigurationService - name of service we want to call, in our case it is ConfigurationService

method=addUserToRole - name of method of service we want to call, in our case it is addUserToRole

param0=Administrator - first parameter for service method, in our case it is role name

param1=userToAdd - second parameter for service method, in our case it is user name(for enabled windows integrated authentication right it is required to use SID instead of user name. It is possible to find SID by user name with command line:  wmic useraccount where name='E600883' get sid)

The method returns a boolean indicating whether the user was added or not.

 

Here is an example of how to remove User from Role:

Service ConfigurationService, method removeUserFromRole(String role, String user), where parameter role is name of role and user - the name of user from zenith.properties you want to remove.

Example of request string you can use in browser to call this function:

http://demo.performancecanvas.com/simple?service=ConfigurationService&method=removeUserFromRole&param0=Administrator&param1=userToRemove

Parameters are similar to described above.

The method returns a boolean indicating whether the user was removed or not.