cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Role assignment based on URL

Former Member
0 Kudos
60

Hi All,

I need to address on requirement it is like if user logon with url -grp.com ( Internet portal url ) it should show him A, B role but same user logon wiith url xyz.com (Interanet portal url) he should see A,B,C,D role. How can we acheive in Portal.

Regards

Stan

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

From EP7 SP14 we have a new feature to achieve this:

[Filtering Entry Points |http://help.sap.com/saphelp_nw70/helpdata/EN/5e/e855a35455458aa4df21a4339722c7/frameset.htm]

Here you need to just assign different desktops to different url aliases.

Regards,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

Thanks for the Link it is really helpful and can reslove my problem but the issue is we are on SP12 and we dont have that feature. Is there any other way around something using Programmatical Approach to User Management eg: using IROLE, IUSER but still i hangup how to filter roles and where to write the code.

Thanks

Stan

0 Kudos

Hi,

It is a good idea to think about upgrading from SP12 to SP14 to use this handy feature.

If you still want a programatical approch, then you should think about PCDFilter but I doubt if this can really fulfill your usecase. Check this for more:

Regards,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

I really agree with you for going with upgradtion of SP but due to some reasons we can't.

As per the link given by you i got the idea how to capture the IP but how we can assign role based on the user what i mean to say is like for interanet User-A has role X,Y and for internet same user User-A has role D,F then how you will assign it dynamically because in Portal in user admininstartion we will assign both the roles to the user. So, how in coding we will filter roles like if he come from internet it should show D,F and if he come from Interant then X,Y.

Also where i have to right the code i mean which par file.

Regards

0 Kudos

Hi,

If you are planning to use PCDFilter then check this first for side effects:

Check this for an example implementation:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3367e690-0201-0010-d285-c69bd884...

While assigning Roles to Users, in your case you should assign User-A all roles X, Y, D, F. And these gets filtered out depending on internet and intranet.

But to determine if the user accessed portal through internet or intranet, you will need HttpServletRequest which is atpresent missing in PCDFilter.

Follow the discussion here:

So for me the best way is to upgrade to SP14.

Regards,

Praveen Gudapati

Answers (0)