The CreatorCon Call for Content is officially open! Get started here.

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
3 REPLIES 3

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...

sethabowen
Tera Contributor

Did you ever find a solution for this? I am running into the same issue, I've added the role that I want to be able to view the page, but whenever I put any role in the "availability" section the side navigation completely disappears for all users.

sethabowen
Tera Contributor

Did you ever find a solution for this? I am running into the same issue when trying to hide some of the side navigation options.

If I add any role into the "availability" section it hides the side navigation for every user.