- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 07:17 AM
Hello Everyone,
I have received a requirement where we need to make the SOW (Service Operations Workspace) to be the default homepage for all ITIL users/particular groups.
Please advice me how can I suggest this.
Kind Regards,
Atanu Maity
atanumaity730@gmail.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 06:55 AM
@A_maity002 Please find the details below for routing it to Service Operations Workspace.
1. Navigate to Script Include -> SPEntryPage
2. Edit the "getFirstPageURL" function as below,
var roleCheck = new GlideRecord('sys_user_has_role');
roleCheck.addQuery('user', gs.getUserID());
roleCheck.addQuery('role','!=',gs.getProperty('internal.role'));
roleCheck.query();
if (roleCheck.getRowCount() > 0)
this.hasRoles = true;
if(gs.hasRole('admin')) {
return;
}
else if (gs.hasRole('itil')) {
return '/now/sow/home'; //Route to SOW if user has ITIL role
}
else {
if (!gs.hasRole('itil') && this.hasRoles) {
return 'now/nav/ui/home'; //Route to Homepage if user has no ITIL role but has other roles
}
else if(!this.hasRoles) {
return '/sp'; //Route to Portal if no roles
}
}
Note: Modify the script accordingly for the assignment group check along with the ITIL role.
Results :
User(s) with ITIL role
User(s) without ITIL role but other roles
User(s) with no roles
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 10:41 PM
Glad to know it had helped you! I hope you have learnt something new today 😊 Many more to cherish!
Sujatha V.M.