Redirecting ITIL User to Backend instead Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 10:31 PM
Hello All,
In our instance users are redirecting to portal, now we have requirement that "itil" users must redirect to backend instead portal after login/impersonating.
Can someone please help me on this.
@Ankur Bawiskar @Mark Roethof @Aman Kumar S
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 02:46 AM
so what happens in the line 94, if user has roles, the code suspends there, you need to add check here:
add below line before 94
if(!gs.hasRole("itil")){
if (user.hasRoles() && !redirectURL && !isServicePortalURL)
return;
}
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 10:40 PM
https://www.servicenow.com/community/developer-blog/redirect-end-users-to-different-portals/ba-p/227... --> Please look in to this article.
Thanks,
Saurabh Dubey.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2024 11:19 PM
@sattar3 I have a similar requirement.
How you have done this, can you please give some suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 07:54 PM
@Kishor O you need to modify your Script Include(SPEntryPage) function getFirstPageURL if condition like below.