SERVICE OPERATIONS WORKSPACE

DK36
Tera Contributor

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

13 REPLIES 13

Karan Chhabra6
Mega Sage
Mega Sage

Hi @DK36 ,

 

Please try with this business rule, runs after insert on group member table

KaranChhabra6_0-1683308246165.png

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:

KaranChhabra6_1-1683308567304.png

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

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

DK36
Tera Contributor

PAGE erro i tried sifferent permutation combibation

like ACL do we nee d to see if that is the case as well

@DK36  - please flush the cache of the instance and re-login

Let me know if it works