Hide sidebar component in SOW

Alex Saager1
Tera Contributor

Hi Community,

 

I've added a test sidebar component to my SOW page and want to limit it's visibility based or either role or user criteria.

I've tried editing this by adding the admin audience to the page variant but all that happens is the icon still shows and just say page not found which is fine but is there a way to actually hide the icon:

 

So here is my page variant with the audience set:

AlexSaager1_0-1726581979028.png


And I've added it to the sidebar navigation:

AlexSaager1_1-1726582097279.png


but it shows when logged in as admin AND when I impersonate ITIL user:

AlexSaager1_2-1726582148012.png

 

AlexSaager1_4-1726582203616.png

 


What am I missing?

 

 

Many thanks,

Alex

 

 

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Audiences control whether you're users can access the page itself, but won't affect the icon in the side navigation. For that you'll need to access the ux page properties for the experience. You'll need to access the chrome_toolbar property for SOW and add the availability section to the entry for your new icon/page as shown in this doc: https://www.servicenow.com/community/next-experience-articles/workspace-app-shell-ux-page-properties... 

You can access the page property by going to instance.service-now.com/now/nav/ui/classic/params/target/sys_ux_page_property.do?sys_id=032a58ed73c4301045216238edf6a7b0

View solution in original post

6 REPLIES 6

Gangadhar Ravi
Giga Sage
Giga Sage

@Alex Saager1  Please check Audience record and see if there is ITIL role or not.

 

Please mark my answer correct and helpful if this works for you.

Hi @Gangadhar Ravi 

No it looks like there's just the admin role for the admin audience:

AlexSaager1_0-1726583172677.png

 

Gangadhar Ravi
Giga Sage
Giga Sage

You need to create new Audience for that page to add ITIL or add existing ITIL Audience(make sure this have itil role)

I wanted it the other way round

so for example admins WOULD see the icon but itil users wold NOT see the icon, hence me adding the admin audience, or am I thinking of audiences in the wrong way?


Thanks