Use system properties and script includes to conditionally redirect users to a page after logging in.
Follow these steps to redirect a user to Service Portal after they log in.
  1. In the sys_properties table, add the following property:
    PropertyTypeValueDescription
    glide.entry.first.page.scriptstringnew SPEntryPage().getFirstPageURL()First page after authentication