Fórum

Assign Custom Site Role to newly created user

Ravi Shah, modificado 8 Anos atrás.

Assign Custom Site Role to newly created user

Junior Member Postagens: 59 Data de Entrada: 02/01/14 Postagens Recentes
Can anyone tell me how do I assign custom site role to newly created users by default?
Sébastien B, modificado 1 Ano atrás.

RE: Assign Custom Site Role to newly created user

New Member Postagens: 17 Data de Entrada: 07/11/12 Postagens Recentes
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, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Junior Member Postagens: 59 Data de Entrada: 02/01/14 Postagens Recentes
That is assigning my custom site role as regular role in Liferay.
Ravi Shah, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Junior Member Postagens: 59 Data de Entrada: 02/01/14 Postagens Recentes
Can anyone please reply to this post ? I am stuck on this.
thumbnail
Manish Yadav, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
Your requirement is not much clear.. I believe suggestion mentioned by Sébastien Bihan will solve your issue
Ravi Shah, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Junior Member Postagens: 59 Data de Entrada: 02/01/14 Postagens Recentes
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, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
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, modificado 8 Anos atrás.

RE: Assign Custom Site Role to newly created user

Junior Member Postagens: 59 Data de Entrada: 02/01/14 Postagens Recentes
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, modificado 7 Anos atrás.

RE: Assign Custom Site Role to newly created user

Junior Member Postagens: 76 Data de Entrada: 02/02/11 Postagens Recentes
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, modificado 7 Anos atrás.

R: Assign Custom Site Role to newly created user

New Member Mensagem: 1 Data de Entrada: 03/02/16 Postagens Recentes
use service wrapper hook

Sent from my Android device with Liferay.com Forums