Different homepage in service portal based on User Role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 06:10 AM
Can anyone help me how to have different homepages in a single portal based on user roles?
When the user login service portal, based on the user role the homepage should vary.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 08:28 AM
Login rules can successfully direct you to the right page. http://wiki.servicenow.com/index.php?title=Legacy:Configuring_the_Login#gsc.tab=0
For example with us:
If User = Internal Domain get ASSOCIATE PAGE
If User = Company>Vendor = True, get the VENDOR PAGE
If User = Company>Customer=True, get the CUSTOMER PAGE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2017 06:21 AM
Hi Trisha,
Service portal pages are not available in content page.
how to bring service portal pages in login rules?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2017 07:10 AM
There is a script include- SPEntryPage
In the initialize function add the below lines-
initialize: function() { | ||
this.logVariables = false; // for debugging | ||
this.portal = "/sp/"; // The URL suffix specified in the sp_portal record | ||
if ((gs.getUser().hasRole('admin'))){this.portal = "/homepage1/"; } | ||
if ((gs.getUser().hasRole('itil'))){this.portal = "/homepage2/";} | ||
if ((gs.getUser().hasRole('cmdb_admin'))){this.portal = "/homepage3/";} | ||
if ((gs.getUser().hasRole('asset_admin'))){this.portal = "/homepage4/";} | ||
}, |
Here the homepage1, homepage2, homepage3 and homepage4 are different portals which are having different homepages. and also add a query business rule which i mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2017 03:55 AM
I need to change homepages in a single portal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2017 04:02 AM
Hi Sobitha,
Which type of homepages do want to create for different users like reports as homepage??