留言板

RE: Adding a user programatically

thumbnail
Jorge Díaz,修改在7 年前。

RE: Adding a user programatically

Liferay Master 帖子: 753 加入日期: 14-1-9 最近的帖子
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,修改在7 年前。

RE: Adding a user programatically

Junior Member 帖子: 39 加入日期: 12-11-1 最近的帖子
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