Workspace Left Navigation Access Control by Role

bdshan
Tera Expert

 

We are on the Vancouver release. I followed the solution given in this thread.

https://www.servicenow.com/community/next-experience-forum/workspace-hide-side-navigation-tabs-based...

However, it is not working. I have two icons that I want appear in the left nav only for users with a specific role. Each icon should be controlled by a different role.

Here is a snippet of my chrome_toolbar configuration.

{
    "id": "sup-dsbd",
    "label": {
        "translatable": true,
        "message": "Supervisor Dashboard"
    },
    "icon": "chart-workbench-outline",
    "routeInfo": {
        "route": "sup-dsbd"
    },
    "group": "top",
    "badge": {},
    "presence": {},
    "availability": {
        "roles": [
            "admin",
            "x_g_dhx_app.supervisor_dashboard_user"
        ]
    },
    "order": 400
},
{
    "id": "mgr-dshbrd",
    "label": {
        "translatable": true,
        "message": "Manager Dashboard"
    },
    "icon": "roadmap-outline",
    "routeInfo": {
        "route": "mgr-dshbrd"
    },
    "group": "top",
    "badge": {},
    "presence": {},
    "availability": {
        "roles": [
            "admin",
            "x_g_dhx_app.manager_dashboard_user"
        ]
    },
    "order": 500
}
 
Has anyone gotten this type of access control to work and could provide a working example?
 
Thanks
5 REPLIES 5

stevemarkovick
Tera Contributor

Controlling Workspace left navigation by role in ServiceNow can be tricky at first. I’ve found that simply hiding modules isn’t enough, you usually need to adjust role-based access controls tied to the underlying records or experience configuration. Checking the UX framework settings and role conditions in the workspace configuration often solves it. It’s more layered than classic UI navigation.