Forums de discussion

Assign Custom Site Role to newly created user

Ravi Shah, modifié il y a 8 années.

Assign Custom Site Role to newly created user

Junior Member Publications: 59 Date d'inscription: 02/01/14 Publications récentes
Can anyone tell me how do I assign custom site role to newly created users by default?
Sébastien B, modifié il y a 1 année.

RE: Assign Custom Site Role to newly created user

New Member Publications: 17 Date d'inscription: 07/11/12 Publications récentes
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, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Junior Member Publications: 59 Date d'inscription: 02/01/14 Publications récentes
That is assigning my custom site role as regular role in Liferay.
Ravi Shah, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Junior Member Publications: 59 Date d'inscription: 02/01/14 Publications récentes
Can anyone please reply to this post ? I am stuck on this.
thumbnail
Manish Yadav, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Expert Publications: 493 Date d'inscription: 26/05/12 Publications récentes
Your requirement is not much clear.. I believe suggestion mentioned by Sébastien Bihan will solve your issue
Ravi Shah, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Junior Member Publications: 59 Date d'inscription: 02/01/14 Publications récentes
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, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Expert Publications: 493 Date d'inscription: 26/05/12 Publications récentes
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, modifié il y a 8 années.

RE: Assign Custom Site Role to newly created user

Junior Member Publications: 59 Date d'inscription: 02/01/14 Publications récentes
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, modifié il y a 7 années.

RE: Assign Custom Site Role to newly created user

Junior Member Publications: 76 Date d'inscription: 02/02/11 Publications récentes
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, modifié il y a 7 années.

R: Assign Custom Site Role to newly created user

New Member Envoyer: 1 Date d'inscription: 03/02/16 Publications récentes
use service wrapper hook

Sent from my Android device with Liferay.com Forums