Redirect user to the Employee center portal based upon location

Abc 26
Tera Expert

Hello Experts,

 

I want to redirect user based upon the location to esc portal if the location is France navigate the user to the esc portal instead of sp portal.

 

@Ankur Bawiskar 

 

Thanks ,

Rahul

1 REPLY 1

Hayo Lubbers
Kilo Sage

Hi @Abc 26 ,

 

Have a look at the login and redirect settings : https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/build/service-portal/co...

 

You can set your own script include / function in the glide.entry.page.script system property to define where you want to go.

e.g. based on roles:

if ((user.hasRole('sn_customerservice.customer') || user.hasRole('snc_external')) && !isAdmin) {
	this.portal = "/support/";
}

 

Regards,

Hayo