We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Redirect user to the Employee center portal based upon location

mehtaaaksha
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 @mehtaaaksha ,

 

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