how to do Bulk-adding users in liferay 7.1

thumbnail
Ramalingaiah. D, modified 6 Years ago. Expert Posts: 489 Join Date: 8/16/14 Recent Posts
Dear  Team,
Bulk-adding users. I.e. adding multiple users at once would be a very useful feature. Does anyone know a way of doing it now?

RegardsRam
thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ramalingaiah. D:

Bulk-adding users. I.e. adding multiple users at once would be a very useful feature. Does anyone know a way of doing it now?
  • Through the API (UserService and UserLocalService as a starting point, but probably you'll involve Group-, Role-, and other services as well)
  • Through LDAP (and you can configure "import at startup" or "import every x (interval)"
thumbnail
Ramalingaiah. D, modified 6 Years ago. Expert Posts: 489 Join Date: 8/16/14 Recent Posts
Dear Olaf Kock,thank you for your reply
i adding csv file data in user table through query ,is it possible?
RegardsRam
thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ramalingaiah. D:

i adding csv file data in user table through query ,is it possible?
If you mean "through sql" when you say "through query": No. You must never even think of writing any data into Liferay's table without using the API. This includes INSERT, UPDATE, and DELETE statements - any statements that change data are to be avoided. If you ignore this, you'll run into issues later, e.g. during upgrade.
You want to change Liferay's data? Use the API! Or any other provided means (e.g. LDAP as mentioned above) that uses the API itself. Period.
thumbnail
Ramalingaiah. D, modified 6 Years ago. Expert Posts: 489 Join Date: 8/16/14 Recent Posts
Dear Olaf Kock,thank you so mach .
Best RegardsRam