Redirect user to the Employee center portal based upon location
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 12:41 AM
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.
Thanks ,
Rahul
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 02:42 AM
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