Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Kyrre Myrbostad
Custom organization roles and inheritance
May 14, 2010 8:07 AM
Answer

Kyrre Myrbostad

Rank: Junior Member

Posts: 37

Join Date: January 21, 2009

Recent Posts

Hi,
I have seen that the organization administrator and owner roles both give the users permissions for the given organization AND all suborganizations. However when I use my own custom organization role, I don't see any way to get this form of inheritance. Here is an example:

I have two organizations, subOrg and parentOrg
I have a user (user1) and an organization role (role1)
I give the role1 permissions to use EDIT mode of my custom portlet
I give user1 role1 in parentOrg

So far so good. If i log in as user1 I get the EDIT mode for my portlet in parentOrg
BUT if I go to subOrgs pages, I don't get the EDIT mode - the role based permissions are not inherited.

This works for liferays system roles. If I log in as organization administrator of parentOrg, I still have full administrator right to subOrg.

Should not this also work for custom roles? If not, is there any way to enable this behavior?

This is a bit of a show-stopper for us at the moment, so any help will be appriciated emoticon
Phu Nguyen Anh
RE: Custom organization roles and inheritance
June 28, 2010 11:33 AM
Answer

Phu Nguyen Anh

Rank: New Member

Posts: 14

Join Date: June 21, 2010

Recent Posts

Hi Kyrre,
I think I got the same problem to yours, did you manage to work it out yet?
In my case, I create an Organization role named "orgRole", then I want to assign it to an organization but I cann't find a way to do it.
The only way I can assign that role is to use:
Organization menu -> Actions -> Assign User Roles -> Select orgRole -> Select Available.
At this point, all users of organization is listed, no organizations listed here (like Regular role).
I have no way to choose an organization for an organization role!
Does it sound confusing?
Anyone can help?

Many thanks,
Phu Nguyen Anh
RE: Custom organization roles and inheritance
June 29, 2010 4:33 PM
Answer

Phu Nguyen Anh

Rank: New Member

Posts: 14

Join Date: June 21, 2010

Recent Posts

No body else got the same problem to me?
Please help. I need to understand that so that I can setup role inheritance between organizations.
Many thanks in advance.
Saranya Sethurajan
RE: Custom organization roles and inheritance
June 30, 2010 12:04 AM
Answer

Saranya Sethurajan

LIFERAY STAFF

Rank: Junior Member

Posts: 57

Join Date: October 7, 2009

Recent Posts

Roles/orgRole/Select organization type and save.

Organization menu -> Actions -> Assign User Roles -> Select orgRole -> Select Available.


Here You can Select users for this particular orgRole of Organization.

Only You can able to add users for orgRole of Organization,

Cannot able to add sub-organization under orgRole of Organization.
Phu Nguyen Anh
RE: Custom organization roles and inheritance
June 30, 2010 2:50 AM
Answer

Phu Nguyen Anh

Rank: New Member

Posts: 14

Join Date: June 21, 2010

Recent Posts

Hi Saranya,

Thanks for your answer.

Saranya Sethurajan:

Here You can Select users for this particular orgRole of Organization.

Only You can able to add users for orgRole of Organization,

Cannot able to add sub-organization under orgRole of Organization.

If so, I have 2 more questions:
- If using Organization role, I cannot have role inheritance from parent organization to child organization. Is it right?
- If so, what is the meaning of having Organization Role? Why don't we just use Regular Role?

Many thanks,
Saranya Sethurajan
RE: Custom organization roles and inheritance
June 30, 2010 4:35 AM
Answer

Saranya Sethurajan

LIFERAY STAFF

Rank: Junior Member

Posts: 57

Join Date: October 7, 2009

Recent Posts

Hi,

If you choose organization role, by default it map organization.

For Example, You are having Salesorg Role, you can assign the sales members of that Particular organization.

Same time you can able to access Salesorg Role for both parent and sub organization.

But you cannot add sub organization under Salesorg Role.
Phu Nguyen Anh
RE: Custom organization roles and inheritance
June 30, 2010 6:36 AM
Answer

Phu Nguyen Anh

Rank: New Member

Posts: 14

Join Date: June 21, 2010

Recent Posts

Hi,

Sorry I'm not very clear about your example. What I'd like is: which is the best way to achieve Role inheritance in this case:
I have an organization named "IT", and a Organization Role name IT_ROLE. I need to assign IT_ROLE to all users of "IT" organization to make them able to use that role.
When I add a new member to "IT" organization, how do I make that new member be assigned to IT_ROLE automatically?

Many thanks,
Carlos Palol
RE: Custom organization roles and inheritance
August 26, 2010 2:14 PM
Answer

Carlos Palol

Rank: New Member

Posts: 1

Join Date: August 26, 2010

Recent Posts

(using Liferay 6.0.5)

When you define the Role Permissions for your custom Organization Role, there is one action under the "organization-administration" group called "Manage Suborganizations".

This action determines whether your Role extends to the child Organizations or not.
Meera Prince
RE: Custom organization roles and inheritance
January 28, 2013 7:56 AM
Answer

Meera Prince

Rank: Liferay Master

Posts: 808

Join Date: February 8, 2011

Recent Posts

Role Permission Inheritance in Organization
Senarios-1:
ParentOrg—user1-OrgRole1 PortletA have Edit Action.
When we login as user1 in Parent Organization We can see edit Action For PortletA
If We place PortletA in ChildORG login as user1 we cant get Edit Permission for PortletA.
Note: From understanding from Liferay forums For ChildOrg also should get Edit Action for user1.

Important: We need to Assign User Roles for organization using OrgRole1 in ChildOrg then we will get Edit Action for PortletA

User1 having following roles with respect to organizations.
OrgName RoleName
ParentOrg OrgRole1
ChildOrg OrgRole1

If user has above scenario then only we will get Edi option in parent and child org for PortletA