cancel
Showing results for 
Search instead for 
Did you mean: 

Roles and subroles

Former Member
0 Kudos

I have a role in the portal with several worksets and pages attached to it. This works fine and the pages in the role hierarchy are only visible in the Detailed navigation if the user belongs to the role. My problem is that I want to be able to use subroles within this base role. I have tried to solve this by adding subroles with connected pages to the base role in the base roles page hierarchy.

What I want to achieve: if a user belongs to the base role he should see everything in its page hierarchy except the page belonging to the subrole. If he belongs to both the base role and the subrole he will see everything, including the page belonging to the subrole.

How do I achieve this? Adding subroles to a base role doesn't seem to solve this, all pages (including the ones you're not supposed to see) are always visible if you belong to the base role.

Thankful for help!

/Oskar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Oskar

Create 2 Roles:

BaseRole

-


Workset A (with Entrypoint A)

-


Page A

-


Page B

-


Page C

-


Page D

-


Page F

SubRole

-


Workset A (with Entrypoint A)

-


Page E

BaseRole and SubRole have the same Entrypoint (A) with the same MergeID. For all Subnodes use the same MergeID to merge them. To sort the Pages when both roles are applied to a user use "Sort Priority".

Hope this helps

Regards Nicolaj

Former Member
0 Kudos

Thanks Nicolaj! This did the trick!

Cheers

Oskar

Answers (2)

Answers (2)

pravesh_verma
Active Contributor
0 Kudos

Hi Oskar,

First of all welcome to SDN family. NOw about your question.

You can do one thing. Just Create the Groups having the required roles you want. For example:

<b>Group1</b>- Assign Base role.

<b>Group2</b>- Assign Sub role.

And then assin the users to these gropus. Now what will hapeen is that if the user belonging to the <b>Group1</b> he will see the everything which is assigned to the <b>Base role</b>. And simmilarly the user belonging to the <b>Group2</b> will the all the content belonging to the <b>SubRole</b>.

I think this will help you and solve your problem. If some more clarification required then please revert back.

Regards

Pravesh

PS: Please consider rewarding points on SDN.

Former Member
0 Kudos

Thank you for your answers! Unfortunately they don't address my problem, I will try to be a bit more specific. It looks like this in the Role editor for the BaseRole:

BaseRole

-


Workset A

-


Page A

-


Page B

-


Page C

-


Page D

-


SubRole

-


Page E

-


Page F

I don't want Page E to be visible if you don't belong to SubRole. When Page E is visible it has to "fit in" the page structure as a whole.

Since this doesn't seem to work, are there another way to achieve the same result? Actually, I consider this to be a pretty serious flaw if it isn't supported in any way... Why are you able to "Add Role to Role" in the Role editor if not to solve this problem?

Regards

/Oskar

former_member200748
Contributor
0 Kudos

Hi Oskar

From what I see, I understand that you are adding a Workset A (with the pages A, B, C, D & F visible) to BaseRole as well a SubRole with the Page E. And suppose the user does not belong to Subrole, he shouldn't be able to see the Page E at all, am I right?

Ok, here is a question that want to clarify. If the user does not belong to the SubRole, then why add it to the BaseRole at all?

You can hide the Subrole by setting its Entry Point to No. But then if you have User Y who belongs to both the BaseRole as well as the SubRole, he will not be able to see the SubRole either. Which is why I suggested ealier that you create a different role for those users who belong to theBaseRole alone and not the SubRole.

Hope that answers your question.

Best Regards

Priya

former_member200748
Contributor
0 Kudos

Hi Oskar

If you add your Subrole to the Base Role then you will definitely be able to see the Pages on the Subrole. There is no way out. I am not sure why you would want to add the Subroles to the Main roles when do not want the users to see the contents on the Subroles at all. Could you please elaborate on why you'd want to do that?

Best Regards

Priya