How to configure redirects in Service PortalIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } You can configure Service Portal to redirect users after login. Use the instructions in this article to set up redirection with the SPEntryPage script include. In earlier platform versions, redirection was configured with methods such as login rules and installation exits. When redirecting to Service Portal, remove these old methods and manage redirection in the SPEntryPage script include. To configure where users log in, see the related article How to Configure Service Portal as your instance login page. For additional questions, review the FAQ article on redirection or watch the following video. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All supported releases Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } 1. Go to the system property glide.entry.first.page.script, and create or update it as a string property. Set the value to: new SPEntryPage().getFirstPageURL()This invokes the SPEntryPage script. 2. In the base system, the script checks if the user has any roles and is not trying to go to Service Portal directly. If both checks pass, the system redirects the user to the glide.login.home property value or the page they tried to load before login.If the user does not have roles, the system sends them to the equivalent page in Service Portal. For example: https://<instance_name>.service-now.com/nav_to.do?uri=change_request_list.do redirects non-role users to: https://<instance_name>.service-now.com/sp/?id=list&table=change_request 3. Configure the SPEntryPage script include to meet your needs. Note: This requires customization of the base system code. Any configuration outside the scope of this article is not supported. 4. Review lines 69 and 70 of the SPEntryPage script. These determine whether to redirect a user. By default, if the user has roles, no redirect URL exists (login_redirect), and the user is not trying to go to Service Portal, the script returns with no redirect.To customize this, modify only the user.hasRoles check. Keep the other two checks to avoid breaking functionality.Example: To redirect users with a specific role to the platform UI: if(user.hasRole("my_cool_role") && !redirectURL && !isServicePortalURL) Additional considerations The SPEntryPage script has two purposes: To direct users to the login pageTo redirect users after login The script is not intended to completely prevent users from accessing the platform UI. Existing redirection logic, such as login rules or installation exits, may conflict with this logic and cause unintended results. Users with the admin role always pass a hasRole check, even if they do not have the specific role being checked. Redirection between multiple portals is not supported. The configuration suggested in this article applies to a single portal. Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Redirection with Service Portal | Frequently asked questions.