cancel
Showing results for 
Search instead for 
Did you mean: 

Role Based Portal

nitin_mahajan2
Contributor
0 Kudos

Hello All,

The requirement is to have

One Portal

Multiple Roles on the portal (say Role1, Role2, Role3....)

All roles available to every user

Role Based Navigation, means there are external links available on a parent portal where in user can navigate directly to Role 1, Role 2 etc, based on the application he wants to access.

But....there is a nw requirement.

If a user clicks on link of Role 4, he should not see remaining roles, means there should only be Role 4 in the Top Level Navigation.

If a user clicks on any other role, Role 4 should not be displayed.

I hope I have not confused you all.

Please let me know if there is standard / crude solution available to do this.

Regards,

Nitin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nitin,

Your requirement can be realized using the navigation zoom concept. It would allow you to show only the contents of the role that you want to display. The links below would show you how the concept can be realized.

[http://help.sap.com/saphelp_nw70/helpdata/EN/e6/436dab861a42389146fdb4990892bc/frameset.htm]

[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d02dbaad-9a99-2910-31be-8ce17737b304]

Regards,

Prathamesh

Answers (4)

Answers (4)

nitin_mahajan2
Contributor
0 Kudos

Added in above post.

former_member189631
Active Contributor
0 Kudos

Tobias Hofmann,

Thanks for your inputs!

I too have the same requirement. I tried using Filter ID property in both the role and the desktop. It displays the Role which has filter id when I login to the portal.

My requirement is all the roles will be displayed on the TLN. If the user click on a role on TLN, the corresponding role's content should be displayed and the remaining roles in TLN roles should be disappeared.

Is this possible using Filter Id ? or Is there any other alternative to meet this.

Ram

hofmann
Active Contributor
0 Kudos

Hi,

yes, there is a standard functionality that supports your scenario: filterID.

Just assign a role a filter ID and assign this number to a desktop. The desktop will only show roles with the defined filter ID.

SAP Help: http://help.sap.com/erp2005_ehp_04/helpdata/EN/5e/e855a35455458aa4df21a4339722c7/content.htm

You'll only have to check that your portal version supports filter ID. Also, if not on one of the latest SPs, you'll encounter caching problems. The Role switch will work only once, and when switching back the user will see a mixture of the new and old desktop. But this should be gone with a recent SP.

br,

Tobias

nitin_mahajan2
Contributor
0 Kudos

Thanks Tobias,

I understood what you are trying to say.

I am on EP70, SP18.

1. I am not able to find the property filterID in the desktop page.

2. Please keep in mind, I have same user accessing all applications. Just that the type of access will be different.

Regards,

Nitin

Former Member
0 Kudos

Hi Nitin ,

When you create a desktop , you will be asked to enter your desktop name and filterid . Suppose in this field you have given the name "filter"(just an example) . Every role also has a property named filterid . You will have to put the same name here as well . Now when the user opens up this desktop , this particular role will appear .

Now configure your desktops with url aliases .For eg.

Application1 - Can be accessed through ....\irj\portal\app1 . Will have role1 , role2

Application2 - ......\irj\portal\app2 .will have role3 , role4 .

Here app1 , app2 are the url aliases . For this you will have to set your main rules file .

Check this for details - http://help.sap.com/saphelp_nw70/helpdata/en/4b/29cf122f414721964269e1b675d62c/content.htm .

Regards,

Mayank

Former Member
0 Kudos

Hi Nitin ,

Did the above mentioned info help you .

Was your issue solved ?

Regrads,

Mayank

nitin_mahajan2
Contributor
0 Kudos

Hi,

Sorry, I didn't get the time to look into the solution, have not tried it yet.

Will try the inputs in next couple of days and reply.

Thanks for your valuable inputs.

Regards,

Nitin

nitin_mahajan2
Contributor
0 Kudos

Guys,

Tried using the filter Id option.

Created as suggested, but i don't see a change in the Theme / Roles when i access portal using those URL Alias.

Created the ALIAS in the web xml and uploaded it through VA and did all the required mapping.

When i try to access the portal through http://<porta>:<port>/irj/portal/alias1 or ....../alias2,

i get an error while opening the logon page saying No Portal Roles are assigned for this user. Please contact Syst Admin. I am getting this error when i should get the logon page.

Regards,

Nitin

Edited by: Nitin Mahajan on May 5, 2010 12:36 AM

Former Member
0 Kudos

Hi Nitin ,

Have you done the following ?

1) A server restart is needed to get the newly created aliases into effect .

2) Make sure the main rules is configured properly . In the IF condition you should use URL alias .

3) The roles meant to displayed for a particular desktop should be assigned to the user .

Regards,

Mayank

nitin_mahajan2
Contributor
0 Kudos

These things were taken care of.

Web XML update and upload through VA for creating alias.

Portal Restart after that

Desktp1 and Desktp2 created with filterId abc and xyz

Role1 and Role2 created with filterId abc and xyz

Role1 and Role2 assigned to user1

main rules configured with Rule1

If URLalias = \portal\alias1 also tried just \alias1, alias1

Then Desktop = desktp1

If URLalias = \portal\alias2 also tried just \alias2, alias2

Then Desktop = desktp2

Portal Restart, Navigation Cache Clear, Local Cache Clear

Access portal through http:
server:port\irj\portal\alias1

Runtime error, no role defined for the current user. This error is coming inplace of getting the logon page.

same behavior on both the custom alias that i created in web.xml.

Accessing portal through other standard Alias is fine.

Regards,

Nitin

nitin_mahajan2
Contributor
0 Kudos

Problem solved after removing the extra "/" from the URL Alias.

Just a clarification....the actual alias is /portal/alias1 in web.xml, but when you create it in URLAlias, you should mention "portal/alias1"

Also, check the How to Guides "how to maintain deployment descriptor in J2EE Engine" for the way to create URL Alias in web.xml.

Regards,

Nitin

Former Member
0 Kudos

Hi Nitin ,

You can implement Portal desktops . There can be a different Desktop for different application such that only the roles associated with that desktop will appear . To achieve this we use URL aliases .Pls go through the below link to know more on Desktops.

http://help.sap.com/erp2005_ehp_04/helpdata/EN/6a/f72f1c9539420ebee0b8734110aaac/frameset.htm

Regards

Mayank