Message Boards
Add User Programmatically to site
Sanat D, modified 3 Years ago.
Add User Programmatically to site
New Member Posts: 17 Join Date: 9/8/20 Recent PostsI wanted to add user programmatically to the site. I search on the internet and got so many blogs regarding adding users but none of them I completely understand. So can anyone have an idea about how to add User or please provide a link to the blog where I can get all the information in details?
Thanks in advanced.
Mohammed Yasin, modified 3 Years ago.
RE: Add User Programmatically to site
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi ,
You can add user to specific site by below service.
GroupLocalService.addUserGroup(userId, groupId);
You can provide groupid of the site and userid which u want to associate site with.