Hide "Problems" and "Changes" applications from the menu of Service Operations Workspace

WA1
Kilo Sage

Hello, 

Since we don't use yet problem and change processes in our instance, is there a possibility to hide applications "Problems" and "Changes" from the menu of Service Operations Workspace ?

We want also to remove "New change request" from here also : 

WA1_0-1722850976021.png

 

Thank you 

8 REPLIES 8

Bhavya11
Kilo Patron

hi @WA1 ,

 

Please go to the UX List Categories [ sys_ux_list_category]

1. Open the Problem for Service Operations Workspace [you can see configuration will be Default - SOW]

2. repeat same for Change

3. for hide "New change request" 

  type Experiences > then it will landed in  UX Applications

then open tile with "Service Operations Workspace"

then UX Page Properties  related list open "chrome_tab"

then edit JSON

 

 

 

 

Please mark helpful & correct answer if it's really worthy for you.

 

Thanks,

BK

 

 

Hi @Bhavya11, thank you for your explanation, but if I make these customizations will I still benefit from the upgrades of ServiceNow to the Service Operations Workspace ?

hi @WA1 

 

You might not receive immediate updates for this feature, but you can address it during the upgrade process. Any issues should become evident during testing, giving you sufficient time to make adjustments as needed.

 

Please mark correct answer if it's really worthy for you.

 

Thanks,

BK

 

 

 

Shaqeel
Mega Sage

Hi @WA1 

 

You could use role based permission system or UI policy or client script to control the visibility.

 

If you have large number of users and need to automate the role removal process:

Script Include:

var HideProblemAndChangeMenus = Class.create();
HideProblemAndChangeMenus.prototype = {
    initialize: function() {},

    removeRoles: function() {
        var userGR = new GlideRecord('sys_user');
        userGR.query();
        while (userGR.next()) {
            // Remove roles for Problem application
            this._removeRole(userGR.sys_id, 'problem_manager');

            // Remove roles for Change application
            this._removeRole(userGR.sys_id, 'change_manager');
        }
    },

    _removeRole: function(userID, roleName) {
        var userRoleGR = new GlideRecord('sys_user_has_role');
        userRoleGR.addQuery('user', userID);
        userRoleGR.addQuery('role.name', roleName);
        userRoleGR.query();
        while (userRoleGR.next()) {
            userRoleGR.deleteRecord();
        }
    },

    type: 'HideProblemAndChangeMenus'
};

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

 

*************************************************************************************************************


Regards
Shaqeel

 

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel