Welcome.do

jcpasia
Kilo Contributor

I wanted to know which part of the Script Includes - SPEntryPage do I configure if i wanted end users to be redirected to the new Service Portal when trying to access the UI16

1 ACCEPTED SOLUTION

jesseadams
ServiceNow Employee
ServiceNow Employee

SPEntryPage does two things:


1. Figures out which login page to show (getLoginURL())


2. Determines where a user goes after they login (getFirstPageURL())



If you're wanting to control where these users go after login that would be done in the getFirstPageURL() function. That is used by the system to figure out what the first page a user goes to after login will be based on their roles and a few other factors.



Ultimately to redirect to your portal you have to set the returnUrl variable to your portal URL.



Note: This will only determine where they go when they first log in. It will not prevent them from navigating to UI16 once they are logged in. In order to do that you'll want to look at some of the options provided in blog Michael mentioned. If you want to prevent ess users from getting to UI16 at all that is usually handled through a UI script.


View solution in original post

2 REPLIES 2

Michael Fry1
Kilo Patron

This blog will explain how to setup a redirector: Redirecting user logins - UI Scripts, Login Rules, or Installation Exits


That's all you should need to do.


jesseadams
ServiceNow Employee
ServiceNow Employee

SPEntryPage does two things:


1. Figures out which login page to show (getLoginURL())


2. Determines where a user goes after they login (getFirstPageURL())



If you're wanting to control where these users go after login that would be done in the getFirstPageURL() function. That is used by the system to figure out what the first page a user goes to after login will be based on their roles and a few other factors.



Ultimately to redirect to your portal you have to set the returnUrl variable to your portal URL.



Note: This will only determine where they go when they first log in. It will not prevent them from navigating to UI16 once they are logged in. In order to do that you'll want to look at some of the options provided in blog Michael mentioned. If you want to prevent ess users from getting to UI16 at all that is usually handled through a UI script.