serviceportal User login redirection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 07:27 AM
Hello All,
We have an below requirement ,
1. If ITIL user login they should see the ServiceNow page.-To achieve this we have gone through the community related posts on redirect links but we are unable to validate the login users and route the users who has ITIL as well as other roles to SNOW page.
2. If non-ITIL user login theyy should be redirected to serviceportal page.- to achieve this we have edited the ESs login property and embed the SP URL whihc works fine but when the user logs out it is getting re-directed to the servicenow login page instead of SP login page.
Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 07:40 AM
Hi Mohan,
Create a system property: 'glide.entry.first.page.script' with value of "new SPEntryPage().getFirstPageURL()" Please refer to the following DOC: https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/build/service-portal/concept/c_... 2. Navigate to sys_public.list and set '$sp" to false (default is true). Allow only authenticated users to access the Service Portal Now one thing the instance is going to do is check against the 'sys_public' table to see if Service Portal is set to public or not. In a base instance, $sp is set to 'true' by default. This allows the Service Portal to be used for login, since it is not asking for authentication before being accessed. If you only want authenticated users to have access to your Service Portal content, then you will need to have this set to 'false'. If you have $sp set to false on the sys_public table, you will need to have the 'glide.entry.page.script' set to the default 'new CMSEntryPage().getEntryPage()', otherwise your instance will go into a constant loop pattern. +++++++++++++++++++++++
Please let me know how it goes. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 07:49 AM
Hi Mohan,
You should find all of the answers you need here: 6 ways to set up your Service Portal for redirection SUCCESS!
It should all come down to configuring the spEntryPage script include to handle your redirection logic and then setting two system properties to call that script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 08:59 AM
Please find this attached link and follow the instructions given and have it set up accordingly. LINK: https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/build/service-portal/concept/c_...
In addition
If you have SSO integrated in your application please go through this link too, might be useful wit this combination: LINK: https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/build/service-portal/concept/c_...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 09:13 AM
I used the below code in SP entry page(60 to 69) and activated the below properties,
* PROPERTY VALUE
* glide.entry.page.script new SPEntryPage().getLoginURL();
* glide.entry.first.page.script new SPEntryPage().getFirstPageURL();
getFirstPageURL: function() {
var session = gs.getSession();
this.logProperties('before', session);
var check = session.getRoles();
// has roles and is not a Service Portal page - go to UI16
var nt = session.getProperty("nav_to");
var isServicePortalURL = new GlideSPScriptable().isServicePortalURL(nt);
var redirectURL = session.getProperty("login_redirect");
if (check && !redirectURL && !isServicePortalURL)
return;
Now, for ITIL users sometimes they able to see the general SNOW UI and some times they see portal homepage.once they logoff and login. Not sure what am missing here.