Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Non-role users cannot switch to platform UI after being redirected to service portal after logging in - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Non-role users cannot switch to platform UI after being redirected to service portal after logging in
KB0780261

Non-role users cannot switch to platform UI after being redirected to service portal after logging in


2796 Views Last updated : May 13, 2024 public Copy Permalink
KB Summary by Now Assist

Description

The system property "glide.entry.first.page.script" can be setup to point to the SPEntryPage script include that would allow non-role users to be redirected to service portal after logging in.

However, after logging in they are not able to switch to platform UI (i.e. by removing /sp from the URL).

This is because the script include runs multiple times after the user logs in which results in the redirection back to the portal each time.

Steps to Reproduce

1) Follow documentation to setup Service portal redirection for non-roled users (https://docs.servicenow.com/csh?topicname=c_SPSSOLoginAndRedirects.html&version=latest)
2) Impersonate a non-role user (eg. Abel Tuter)
3) You should be redirected to /sp
4) Remove the /sp from the URL, notice how you are sent back to /sp

Expected behavior: On login non-role users will get sent to /sp. If desired the users can remove/change URL path to navigate to Platform UI.

Actual behavior: Users are forced to stay in /sp. Removing/Changing URL triggers SPEntryPage script and redirects back to SP.

Workaround

Option 1)

In script include - SPEntryPage, in the getFirstPageURL method

Change

if (user.hasRoles() && !redirectURL && !isServicePortalURL)

to

if (!redirectURL && !isServicePortalURL)

 

Option 2)

Users can append /?.do in the URL (i.e. instancename.service-now.com/?.do)


Related Problem: PRB1319325

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.