Problem with creating users in the Studio

1
0
-1

Hey,

I create a process to add users with the groovy code bellow.

import org.bonitasoft.engine.identity.UserCreator;
 
final UserCreator user = new UserCreator (field_login2, field_pw2);
user.setFirstName(field_nom1).setLastName(field_prenom1);
apiAccessor.getIdentityAPI().createUser(user);
return true

The creation is done and every think is alright. Otherwise i have 2 problems :

  1. The users are not created in the studio too. Only in the portal.

  2. Once, i close the portal my users added, disepeared from the portal !

Thank you !

3 answers

1
+1
-1
This one is the BEST answer!

Hello, the answer is in the Studio preferences . You sould disable database clean on exit. Cheers, Haris

1
0
-1

Thank you . Yes it was the solution. :)

And is there some way to create the user also in the studio once created in the portal by my process

1
0
-1

Thank you a lot haris.subasic. Now when i close my studio and even the portal i still have my user.

But i still have a problem how can i have the user in the organisation on studio once created by my process in the portal ?

I am using the community version.

Notifications