留言板

Assign Custom Site Role to newly created user

Ravi Shah,修改在8 年前。

Assign Custom Site Role to newly created user

Junior Member 帖子: 59 加入日期: 14-1-2 最近的帖子
Can anyone tell me how do I assign custom site role to newly created users by default?
Sébastien B,修改在1 年前。

RE: Assign Custom Site Role to newly created user

New Member 帖子: 17 加入日期: 12-11-7 最近的帖子
Hello Ravi,

In configuration part of control panel, go in "Portal Settings" -> "Users" and "Default User Associations" tab.

You can add, in Roles input, a role name which will be associated by default to new User.

Sébastien Bihan
Ravi Shah,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Junior Member 帖子: 59 加入日期: 14-1-2 最近的帖子
That is assigning my custom site role as regular role in Liferay.
Ravi Shah,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Junior Member 帖子: 59 加入日期: 14-1-2 最近的帖子
Can anyone please reply to this post ? I am stuck on this.
thumbnail
Manish Yadav,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
Your requirement is not much clear.. I believe suggestion mentioned by Sébastien Bihan will solve your issue
Ravi Shah,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Junior Member 帖子: 59 加入日期: 14-1-2 最近的帖子
Manish Yadav:
Your requirement is not much clear.. I believe suggestion mentioned by Sébastien Bihan will solve your issue



Below is my Requirement:

1) I have created a custom site role "Trustee"
2) Added that role to user default associations. So that when a new users creates account he is assigned that role
3) But that role should be a site role. When navigate to user and check user details he is assigned that role as a regular role not as a site role. I want to restrict that role to one particular site only.
thumbnail
Manish Yadav,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
I Just now checked....Its working absolutely fine ..May i know in which bundle you are trying ... a

Are you sure that your role is site role not regular role ??
Ravi Shah,修改在8 年前。

RE: Assign Custom Site Role to newly created user

Junior Member 帖子: 59 加入日期: 14-1-2 最近的帖子
Manish Yadav:
I Just now checked....Its working absolutely fine ..May i know in which bundle you are trying ... a

Are you sure that your role is site role not regular role ??



I am using Liferay 6.2 GA6 CE.
thumbnail
ANKIT SRIVASTAVA,修改在7 年前。

RE: Assign Custom Site Role to newly created user

Junior Member 帖子: 76 加入日期: 11-2-2 最近的帖子
I am not pretty much cleared with your requirement but just wondering, if you are facing this :

https://issues.liferay.com/browse/LPS-33205

Thanks,
Ankit
chandra sekhar Jagabattula,修改在7 年前。

R: Assign Custom Site Role to newly created user

New Member 发布: 1 加入日期: 16-2-3 最近的帖子
use service wrapper hook

Sent from my Android device with Liferay.com Forums