留言板
User group and roles
Hi,
I created a role in a community, and created a user group included several peoples that should have the roles. But how do I assign a role to a user group?
Thanks.
I am using Liferay 5.2.2 with Tomcat 6.0.18.
Sophia
I created a role in a community, and created a user group included several peoples that should have the roles. But how do I assign a role to a user group?
Thanks.
I am using Liferay 5.2.2 with Tomcat 6.0.18.
Sophia
Auditya manikanta Vadrevu,修改在15 年前。
RE: User group and roles
Liferay Master 帖子: 621 加入日期: 08-5-6 最近的帖子
hi Sophia Cui ,
goto your created role under roles tab in Contro panel --> portal and click permissions from actions button. Then you can see the usergroups tab. Assign your usergroup to the role.
With Regards,
V.Auditya
goto your created role under roles tab in Contro panel --> portal and click permissions from actions button. Then you can see the usergroups tab. Assign your usergroup to the role.
With Regards,
V.Auditya
Auditya manikanta Vadrevu:
hi Sophia Cui ,
goto your created role under roles tab in Contro panel --> portal and click permissions from actions button. Then you can see the usergroups tab. Assign your usergroup to the role.
With Regards,
V.Auditya
Thanks for your reply, but are we using the same thing? I followed your steps, there is no User Group tab??
What is wrong?
Sophia
I think when they added the ability to add usergroups to communities, they didn't think about being able to assign community roles that way.
I think usergroup based permission can be assigned if we are using the permission algorithm 4, From 5.1 the default algorithm used is 5, More information about permission algorithm is given in the link listed below.
Permission algorithm
Permission algorithm
Auditya manikanta Vadrevu,修改在15 年前。
RE: User group and roles
Liferay Master 帖子: 621 加入日期: 08-5-6 最近的帖子
hi Sophia Cui,
Where you did not get the usergroup tab ? can you attach a screenshot. Look at the image i have attached, in that I have created a usergroup cricket-lovers and assigning publisher role to that usergroup.
With Regards,
V.Auditya
Sophia Cui:
but are we using the same thing? I followed your steps, there is no User Group tab??
What is wrong?
Sophia
Where you did not get the usergroup tab ? can you attach a screenshot. Look at the image i have attached, in that I have created a usergroup cricket-lovers and assigning publisher role to that usergroup.
With Regards,
V.Auditya
Hi, Auditya
I tried twice to attach the file with image, but they all failed.
The image you showed me make sense, and it suppose to be like that. But I tried in my portal site again, still I can't see what you see. I signed in as Administrator, then go to Control Panel, then Roles, I see a list of Roles there, then I clicked the Roles I created, or click Action button, then select Edit.
At the top, I have only one button there says "View All", and that 's all. No other option available at all.
After I installed the Liferay 5.2.2 successfully, I created an Administrator of my own, then I deleted the default one, Joe, will that matter?
Please give more advise, thank you so much!
Sophia
I tried twice to attach the file with image, but they all failed.
The image you showed me make sense, and it suppose to be like that. But I tried in my portal site again, still I can't see what you see. I signed in as Administrator, then go to Control Panel, then Roles, I see a list of Roles there, then I clicked the Roles I created, or click Action button, then select Edit.
At the top, I have only one button there says "View All", and that 's all. No other option available at all.
After I installed the Liferay 5.2.2 successfully, I created an Administrator of my own, then I deleted the default one, Joe, will that matter?
Please give more advise, thank you so much!
Sophia
Let me try to attach the file separately here, so it won't fail my message.
I believe Auditya's screenshot is only for regular roles, not community roles.
Amos Fong:
I believe Auditya's screenshot is only for regular roles, not community roles.
Ok, that's the thing make difference.
Only the regular roles 's Action button has the option: Assign Members.
Thank you very much, Amos and Auditya!
Sophia
Is it possible to assign community/organization roles to user groups programmatically (using API)?
My use case is that we have a lot of different communities and would like to use community roles. BUT that implies that we have to duplicate user membership in some community roles, instead of just assigning the user group once and for all to the given role in the spesific communities.
Consider this: User is member of usergroup A, the user needs to have to role webmaster on community B and C. If I give him the community role, i have to do this twice, once for each community. This info must be maintained as users come and go.
If I could give usergroup A the role webmaster in community B and C, this would be much easier to maintain. Portal wide roles are not an option, obviously.
Do we need to go back to permission algorithm 4 to do this? (Please no... ;)
My use case is that we have a lot of different communities and would like to use community roles. BUT that implies that we have to duplicate user membership in some community roles, instead of just assigning the user group once and for all to the given role in the spesific communities.
Consider this: User is member of usergroup A, the user needs to have to role webmaster on community B and C. If I give him the community role, i have to do this twice, once for each community. This info must be maintained as users come and go.
If I could give usergroup A the role webmaster in community B and C, this would be much easier to maintain. Portal wide roles are not an option, obviously.
Do we need to go back to permission algorithm 4 to do this? (Please no... ;)
I think "How to assign roles to a group?" is a great question. The title of the post misleading though, something like: "how to assign roles to a group?" would be much better. Depending on the type of roles (site, regular, organization or team) it can be different. For instance, how to add a regular role to a site group was discussed above.
I wasn't sure if adding an independent post for this. I am posting my answer here since when I googled "assign roles to groups" I got here from the results. This is the kind of questions that seems to be valid no matter the version of Liferay, that is why I also like it. In Liferay 6.2, which is the one I am working with, this would be as follows:
Assign site role to a group:
1) Control Panel -> Sites -> Select the specific site -> Users tab -> Site Memberships -> User Groups tab -> Assign User Groups -> Select the group you want in that site
That's just the first step, then you need to add the site role to the group :
2) Click on the actions button of the group -> Assign site role -> Click on update
And that's it: users belonging to that group will get the site role for that site.
I hope it helps.
I wasn't sure if adding an independent post for this. I am posting my answer here since when I googled "assign roles to groups" I got here from the results. This is the kind of questions that seems to be valid no matter the version of Liferay, that is why I also like it. In Liferay 6.2, which is the one I am working with, this would be as follows:
Assign site role to a group:
1) Control Panel -> Sites -> Select the specific site -> Users tab -> Site Memberships -> User Groups tab -> Assign User Groups -> Select the group you want in that site
That's just the first step, then you need to add the site role to the group :
2) Click on the actions button of the group -> Assign site role -> Click on update
And that's it: users belonging to that group will get the site role for that site.
I hope it helps.