The CreatorCon Call for Content is officially open! Get started here.

Redirect users without ITIL role to Service Portal

TW-SN-Alex
Tera Contributor

Good day.

I'm trying to accomplish such configuration in Kingston release:

1. If the user has role itil, then redirect to navpage.do\UI16
2. If the user has some roles but not itil, then redirect to Service Portal

There is OOB SPEntryPage script, but it's checking if user has any role (if no roles -> SP), any role assigned -> UI16.

On line 66 in SPEntryPage script there is line:
var check = session.getRoles(); 

Understand that need to add condition if (check.contains("itil")) , but any edit was unsuccessful.

Please advise.

Thanks in advance.

 

1 ACCEPTED SOLUTION

Dubz
Mega Sage

You should be able to configure a login rule as below which will do that for you. Go to Content Management > Configuration > Login Rules

find_real_file.png

View solution in original post

8 REPLIES 8

Dubz
Mega Sage

You should be able to configure a login rule as below which will do that for you. Go to Content Management > Configuration > Login Rules

find_real_file.png

Hello David,

 

I need some help regarding same issue.

 

We are able to redirect non itil user to service portal and itil to UI.

But in this if non itil user with different role remove suffix /sp from url , its getting redirect to UI ,which should redirect to  sp only.

https://community.servicenow.com/community?id=community_question&sys_id=7e05bb5adb9ee3802737e15b8a961920 

Please suggest on this how we can achieve this.

 

Help appreciated!
 

All content pages load as xyz.do 

 

How did you manage to load the portal page without the .do ?

 

Can you please share a screenshot of your "Portal" Content page?