Foros de discusión

Assign Custom Site Role to newly created user

Ravi Shah, modificado hace 8 años.

Assign Custom Site Role to newly created user

Junior Member Mensajes: 59 Fecha de incorporación: 2/01/14 Mensajes recientes
Can anyone tell me how do I assign custom site role to newly created users by default?
Sébastien B, modificado hace 1 año.

RE: Assign Custom Site Role to newly created user

New Member Mensajes: 17 Fecha de incorporación: 7/11/12 Mensajes recientes
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 hace 8 años.

RE: Assign Custom Site Role to newly created user

Junior Member Mensajes: 59 Fecha de incorporación: 2/01/14 Mensajes recientes
That is assigning my custom site role as regular role in Liferay.
Ravi Shah, modificado hace 8 años.

RE: Assign Custom Site Role to newly created user

Junior Member Mensajes: 59 Fecha de incorporación: 2/01/14 Mensajes recientes
Can anyone please reply to this post ? I am stuck on this.
thumbnail
Manish Yadav, modificado hace 8 años.

RE: Assign Custom Site Role to newly created user

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
Your requirement is not much clear.. I believe suggestion mentioned by Sébastien Bihan will solve your issue
Ravi Shah, modificado hace 8 años.

RE: Assign Custom Site Role to newly created user

Junior Member Mensajes: 59 Fecha de incorporación: 2/01/14 Mensajes recientes
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 hace 8 años.

RE: Assign Custom Site Role to newly created user

Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
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 hace 8 años.

RE: Assign Custom Site Role to newly created user

Junior Member Mensajes: 59 Fecha de incorporación: 2/01/14 Mensajes recientes
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 hace 7 años.

RE: Assign Custom Site Role to newly created user

Junior Member Mensajes: 76 Fecha de incorporación: 2/02/11 Mensajes recientes
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 hace 7 años.

R: Assign Custom Site Role to newly created user

New Member Mensaje: 1 Fecha de incorporación: 3/02/16 Mensajes recientes
use service wrapper hook

Sent from my Android device with Liferay.com Forums