Take ESS User Directly to the Service Portal
December 14, 2018
Tags: serviceportal portal ess login redirect SPEntryPage
Users without roles are usually only require access to the self service view of ServiceNow, which is now the Service Portal.
They do not need access to the backend forms and lists. For most new ServiceNow projects you’ll be required to direct role-less users to the ServicePortal.
In order to achieve this, you’ll just need to create a System Property.
Name: glide.entry.first.page.script
Value: new SPEntryPage().getFirstPageURL();
Optional
In addition to this, if you want to further restrict a particular role such as ITIL to only have access to the backend then amend the SPEntryPage
Script Include.
Replace this line in Script Include (line 69 at the time of writing this):
if (user.hasRoles() && !redirectURL && !isServicePortalURL)
With the line
if (user.hasRole('itil') && !redirectURL && !isServicePortalURL)