留言板

"Add user" portlet

prajeesh karat,修改在8 年前。

"Add user" portlet

New Member 发布: 1 加入日期: 15-2-16 最近的帖子
Currently for admin, to add user one has to go to control panel and then go to users to add up new user. I want a portlet where with one click to a button, new user registration open comes up
thumbnail
Jitendra Rajput,修改在8 年前。

RE: "Add user" portlet

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
You can use create account functionality available in login portlet to create new user from page instead of control panel.

If you want user admin portlet to be available in page then you will have to do several changes in liferay-portlet.xml , liferay-display.xml and in portal.xml using ext.

Basically you will have to provide ADD_TO_PAGE permission so that user admin will be accessible in add application menu.

Thank you,
Jitendra
Anjaneya Eswarappa,修改在8 年前。

RE: "Add user" portlet

Junior Member 帖子: 49 加入日期: 14-11-18 最近的帖子
I Have a requirement where in i need to add user portlet to my own public page . Please share the steps
thumbnail
David H Nebinger,修改在8 年前。

RE: "Add user" portlet

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
1. create form.
2. create action handler for form.
3. extract parameter values.
4. invoke liferay api to add user.
Hassan Bakri,修改在8 年前。

RE: "Add user" portlet

New Member 帖子: 4 加入日期: 15-6-18 最近的帖子
David H Nebinger:
1. create form.
2. create action handler for form.
3. extract parameter values.
4. invoke liferay api to add user.



hi
i have requirement so the users don't have to enter their first name and other features (which is mandatory by default system portlet ) my question is if i did the above instructions do i can bypass the checking forced by the system in("\html\portlet\login\create_account.jsp")
thumbnail
David H Nebinger,修改在8 年前。

RE: "Add user" portlet

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
You can try to bypass the checks in that jsp page, but your insert will fail. Required fields are just that, required.
thumbnail
Meera Prince,修改在8 年前。

RE: "Add user" portlet

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
HI
Best way is create custom portlet and use portal API to add user in the database


Regards,
Meera Prince
thumbnail
Ravi Kumar Gupta,修改在8 年前。

RE: "Add user" portlet

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
Prajeesh,

Agree with Meera here. Creating a custom portlet is an easy and fast option here. I do similar to this when I need to create multiple users for testing.

Assuming that you want admin to escape filling forms every time a user is to be created and need bulk user creation..
Alternatively you can also check this portlet if it helps. https://www.liferay.com/marketplace/-/mp/application/33064852
This portlet imports users from csv file.
thumbnail
Nitin Yeola,修改在8 年前。

RE: "Add user" portlet

Junior Member 帖子: 64 加入日期: 14-1-16 最近的帖子
There are liferay API you can use in your portlet like
- UserLocalServiceUtil.addUser(params)
Check the details for paramameter in API

Regards
Nitin
thumbnail
Nikhil Nishchal,修改在8 年前。

RE: "Add user" portlet

Regular Member 帖子: 177 加入日期: 12-6-22 最近的帖子
Yes you can use Liferay API for user creation and what ever data you can pass from form you can pass other wise you can put it by code or with some random text.
Hassan Bakri,修改在8 年前。

RE: "Add user" portlet

New Member 帖子: 4 加入日期: 15-6-18 最近的帖子
yup they are just required but that frees you form their validation too (The bright side emoticon )