Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Eric L'Hostis
Create user
December 17, 2008 1:04 PM
Answer

Eric L'Hostis

Rank: New Member

Posts: 17

Join Date: December 17, 2008

Recent Posts

Hi,

I develop my own portlet where an admin user can create other users. For this operation, I use this function :

1UserServiceUtil.addUser


The problem is this function is reserved for users with "Administrator" role. So I must add this role to this user. But I don't want to add this role. Is there an other solution ?
Lari Tuominen
RE: Create user
December 19, 2008 12:32 AM
Answer

Lari Tuominen

Rank: Expert

Posts: 283

Join Date: November 7, 2007

Recent Posts

Hi Eric,

Use UserLocalServiceUtil if you do not want to check permissions....
Check out this post: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/184790

- Lari
Eric L'Hostis
RE: Create user
December 19, 2008 6:58 AM
Answer

Eric L'Hostis

Rank: New Member

Posts: 17

Join Date: December 17, 2008

Recent Posts

Hi Lari,

Thanks for your reply. It works good.

Eric