Different homepage in service portal based on User Role

sobitha
Kilo Contributor

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.

14 REPLIES 14

trishjohnson
Kilo Guru

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



find_real_file.pngfind_real_file.pngfind_real_file.png


Hi Trisha,



Service portal pages are not available in content page.



how to bring service portal pages in login rules?


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.


I need to change homepages in a single portal.


Hi Sobitha,



Which type of homepages do want to create for different users like reports as homepage??