[UI Builder : Workspace] Hide left navigation pages based on role or group

Chris176
Tera Contributor

Hi all

 

I am having an issue in trying to hide pages on the left hand navigation pane in a workspace.

I have found this previous post here but it does not work for me.

 

Ask: Hide pages on the left hand navigation based on role (or even better, based on group)

Issue: After amending the JSON the page icon is still visible but the page content is not, which seems by design. The desired outcome though is to hide the page icon entirely based on role and only show it if the user has the role.


Navigation pane in question:

 

Chris176_0-1716985250628.png

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The answer in the post you linked is the right way to do this. Could you post the contents of your chrome_toolbar ux page property so we can make sure it's formatted correctly.

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hi @Chris176 ,

Can you share the updated Json screenshot.

 

Thank you for the assistance Sandeep, my issue was in the JSON after all.

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The answer in the post you linked is the right way to do this. Could you post the contents of your chrome_toolbar ux page property so we can make sure it's formatted correctly.

I managed to correct the issue! Apologies, I seemed to have been making an embarrassing error with how I was actually testing. However, I wonder if there is any way to hide the options based on a user group?
Your videos have been fantastic by the way, thank you.