SERVICE OPERATIONS WORKSPACE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 10:01 AM
we are trying to make service operations workspace as the default landing page for set of specific Roles in servicenow
Only those roles users should have their landing page shown as service operations workspace
I have tried below options but it didn't worked
1. user preference creating home navigation and pointing to /now/sow/home
2 system property creations
3 adding roles to workspace ui
4 trying creating a custom business rule for setting landing page
All these didnt worked for me
Please advice early reponse will be much appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 10:43 AM - edited 05-05-2023 10:45 AM
Hi @DK36 ,
Please try with this business rule, runs after insert on group member table
Script
(function executeRule(current, previous /*null when async*/ ) {
var prefGR = new GlideRecord('sys_user_preference');
prefGR.addQuery('name', 'my_home_navigation_page');
prefGR.addQuery('user', current.user.toString());
prefGR.query();
if (prefGR.next()) {
prefGR.value ='/now/sow/home';
prefGR.update();
} else {
prefGR.value = '/now/sow/home';
prefGR.name = 'my_home_navigation_page';
prefGR.user = current.user.toString();
prefGR.insert();
}
})(current, previous);
You can also create the user preference manually if it is for a single user:
If my answer has helped with your question, please mark it as correct and helpful
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 11:14 AM
hi Karan
Thanks for imemdiate reply
It seems to me there are other properties or configuration also required at user level.
i used a group called service desk with no roles mapped and few users
one user when i impersonated it redirected to SOW page where i wanted as per code you shared
but for other users in same group it showing ERROR - 403 page access not there
Do we need to have some basic roles added ? or am i missing any step
Please suggest /guide
I added canvas_user and sn_sow.sow_user and workspace_user role as well there but no effect
Regards
deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 11:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2023 11:41 AM
@DK36 - please flush the cache of the instance and re-login
Let me know if it works