Jump to content

Webservice for Usermanagement


amayr

Recommended Posts

I want to synchronize users from our application with the users in jasperserver.

Ok, a simple question:

How do I get a UserAndRoleManagement instance?
I want to call putUser on this object...

 

Code:
WSUser user = new WSUser();user.setPassword("");user.setUsername("");UserAndRoleManagement manager = ???;manager.putUser(user);
Link to comment
Share on other sites

  • 2 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The Documentation has the following example of how to add a user from WebServices.

 

What is the setting for "binding"

 

Where and How is it declared?

 

 

 

Code:
WSUser user = new WSUser();
user.setUsername("john");
user.setTenantId("organization_1");
user.setEnabled(true);
user.setFullName("John Doe");
WSRole role = new WSRole();
role.setRoleName("ROLE_ANONYMOUS");
role.setTenantId(null);
user.setRoles(new WSRole[] {role});
WSUser value = binding.putUser(user);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...