Fórum

RE: Adding a user programatically

thumbnail
Jorge Díaz, modificado 7 Anos atrás.

RE: Adding a user programatically

Liferay Master Postagens: 753 Data de Entrada: 09/01/14 Postagens Recentes
Which Liferay version are you using? Liferay 6.2? Liferay 7? Which GA version are you using?

The root issue of your problem is the record in users_groups table with -1 groupId

If you create a user from Liferay interface, is everything ok in users_groups table?

You have to investigate the code that is inserting the "-1" groupId, try debugging Liferay code.
Gaurav Sharma, modificado 7 Anos atrás.

RE: Adding a user programatically

Junior Member Postagens: 39 Data de Entrada: 01/11/12 Postagens Recentes
I'm using Liferay 6.2 GA3.

The user creation works fine when done using the Control Panel. Also, the code attached here is all I'm doing to create the user. At no point am I setting groupId = -1