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
1 REPLY 1

Carloas
ServiceNow Employee
ServiceNow Employee

Not sure if you were able to get this working but I found another post where a similar issue was resolved
https://www.servicenow.com/community/next-experience-forum/workspace-hide-side-navigation-tabs-based...