How to redirect home page based on csm agents role sn_customerservice_agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2026 01:14 AM
Hello All,
How to achieve the below requirement in servicenow:
How to redirect csm workspace view home page based on csm agent - role sn_customerservice_agent
and we tried updated on below script on script include "SPEntryPage" but it's not works on impersonate to the user role of ' 'sn_customerservice_agent' redirect to csm workspace view. Please suggest on this:
if (user.hasRole('sn_customerservice_agent') && !user.hasRole('admin') && !redirectURL && !isServicePortalURL)
return "now/cwf/agent/home";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2026 01:17 AM
are you saying based on role users should be redirected to particular landing page of workspace?
you can handle this using Homepage Destination Rule
Homepage Redirect Rules in Next Experience
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2026 01:26 AM
Thanks for response..
Yes, based on user role like if user have sn_customerservice_agent role it should be redirect to csm workspace view and if user have itil sole it should be redirect to sow workspace view
Thanks,
Ashok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2026 01:30 AM
please share screenshot where you want user to land
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2026 01:38 AM
