- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Problem Statement:
In multi-domain implementations on ServiceNow, users often work in the backend (Operations / Platform UI) but need to access different portals depending on their domain (HR, IT, Facilities, etc.).
Out of the box, there’s no simple way to have one backend module that redirects users to the correct portal automatically. Here’s a lightweight approach that solves this.
Requirement
Single backend module
Redirect users to the correct portal
Portal selection based on user domain
- Solution Overview
Create a backend module with name of your wish (I created Switch to Portal View)
In Arguments call a UI page. (Create UI page from All->System UI->UI pages)
- Create a Server Side Script where domain logic will be written. Note i have used a system property to take care of the different portals & stored the values as a JSON key value pair.
{
"Domain1": "/portal1",
"Domain2": "/portal2",
"Domain3": "/portal3",
"Domain4":"/portal4"
}- System property helps in keeping the code clean & in future u want to include more domains u don't need to touch the code rather update the property & things will work.
✔ Redirects cleanly to the portal
✔ Avoids backend header showing up
✔ Works across domains
Important Notes
Avoid
window.locationorlocation.hrefAlways use
top.locationfor backend → portal navigationKeep domain logic server-side for security and scalability
Benefits
One-click navigation for users
Domain-aware portal experience
Cleaner UX in multi-domain environments
Easy to extend for new domains
Thanks,
Danish Bhairagdar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

