How to configure user 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: ; } } Configure Service Portal to redirect users after login using 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 older methods and manage redirection in the SPEntryPage script include. To configure where users log in, see How to Configure Service Portal as your instance login page. For additional questions, review the FAQ article on redirection or watch this video on YouTube. 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: ; } } Configure the system property Go to System Properties > All Properties.Search for glide.entry.first.page.script. Create or update it as a string property.Set the value to: new SPEntryPage().getFirstPageURL() This value invokes the SPEntryPage script Understand the default redirect behavior In the base system, the script checks whether the user has any roles and whether the user is trying to access Service Portal directly. If both checks pass, the system redirects the user to the glide.login.home property value or the page the user attempted to load before login.If the user does not have roles, the system redirects the user to the equivalent page in Service Portal. Example: The following URL: https://<instance_name>.service-now.com/nav_to.do?uri=change_request_list.do Redirects users without roles to: https://<instance_name>.service-now.com/sp/?id=list&table=change_request Customize the SPEntryPage script include Configure the SPEntryPage script include to meet your requirements. Note: This requires customization of the base system code. Any configuration outside the scope of this article is not supported. Review lines 69 and 70 of the SPEntryPage script. These lines 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 access Service Portal, the script returns with no redirect.To customize this behavior, 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, use the following condition: if(user.hasRole("my_cool_role") && !redirectURL && !isServicePortalURL) Additional considerations The SPEntryPage script has two purposes: Direct users to the login pageRedirect users after login The script is not intended to completely prevent users from accessing the platform UI. Keep the following in mind: 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 FAQ.