How to customise workspace banner in Utah release.

Gaurav Bhardwaj
Tera Contributor

I have a specific requirement, I want to restrict the Elements (like CMDB Workspace) of workspaces on banner based on specific roles. Like the way we can restrict it in the applications and modules. 

 

I can delete it for everyone from the Experience Category workspace, but I want to show it for specific roles. 

 

GauravBhardwaj_0-1683086429200.png

 

1 ACCEPTED SOLUTION

Amit Gujarathi
Giga Sage
Giga Sage

Hi @Gaurav Bhardwaj ,
I trust you are doing great.

To restrict the visibility of Elements on the banner of your CMDB Workspace based on specific roles, you can follow these steps:

  1. Navigate to the "Experience Category" workspace in ServiceNow.
  2. Click on the "Edit" button on the banner of the workspace.
  3. On the right-hand side of the screen, you should see a "Banner Elements" section. Click on the "Edit" button for that section.
  4. Here, you can add conditions to restrict the visibility of the Elements based on specific roles. For example, you can add a condition like "gs.hasRole('specific_role')" to show the Element only to users who have the "specific_role" role.
  5. Save your changes and test the visibility of the Elements for different roles.

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



View solution in original post

2 REPLIES 2

Amit Gujarathi
Giga Sage
Giga Sage

Hi @Gaurav Bhardwaj ,
I trust you are doing great.

To restrict the visibility of Elements on the banner of your CMDB Workspace based on specific roles, you can follow these steps:

  1. Navigate to the "Experience Category" workspace in ServiceNow.
  2. Click on the "Edit" button on the banner of the workspace.
  3. On the right-hand side of the screen, you should see a "Banner Elements" section. Click on the "Edit" button for that section.
  4. Here, you can add conditions to restrict the visibility of the Elements based on specific roles. For example, you can add a condition like "gs.hasRole('specific_role')" to show the Element only to users who have the "specific_role" role.
  5. Save your changes and test the visibility of the Elements for different roles.

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



Thank you Amit for helping here. I hope your doing well. 

 

Actually, I want to restrict users to access the CMDB workspace. If someone types "https://instancename.service-now.com/now/cmdb/home", it should not be accessible to them. Also in the navigator, the CMDB workspace should not be visible to them. And in the banner under workspace lists, the CMDB workspace should not be visible to them.
It should only be available to specific roles along with admin.


In Navigator, I hide it by customising the roles to the module. Also, I found it under sys_ux_experience_category.list we have the option to edit the application lists from the workspace. Here we can only delete or disable for every user but I only want to hide it using roles.

 

GauravBhardwaj_0-1683092446793.png

 

Even I tried to edit it by modifying the ACL by navigating to "https://instancename.service-now.com/sys_security_acl_list" and modifying the CMDB Workspace ACL. Even after elevating to security admin, I didn't get an option to edit the roles. 

 

GauravBhardwaj_1-1683093114247.png