# In the dashboard UI we should verify the role to show and hide left hand side pages menus

**URL:** <https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [18 November 2024 07:09 UTC](https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215 "2024-11-18T07:09:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nandhini-Subramaniya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nandhini-subramaniya/32/92882_2.png) [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Post date:** [18 November 2024 07:09 UTC](https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215/1 "2024-11-18T07:09:55Z")

</div>

here my dashboard arrangements of the pages

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9ed72729bb3ac188dc493ee40e42d18930951711.png)

while login with the user as admin, i have to only two pages, like if i login with the guest as user,it will show guest pages. but default it is showing the map page why what is the reason how can i fix that.below i updated my flows for only switching the users between the pages

```auto
[
    {
        "id": "cde67a88e039f2ca",
        "type": "ui-control",
        "z": "44c6d68e5650c5c2",
        "g": "138ad8a6a29acecd",
        "name": "",
        "ui": "64fc71361e24a0d0",
        "events": "change",
        "x": 600,
        "y": 460,
        "wires": [
            []
        ]
    },
    {
        "id": "64fc71361e24a0d0",
        "type": "ui-base",
        "name": "",
        "path": "/dashboard",
        "appIcon": "",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-iframe",
            "ui-control",
            "ui-template",
            "ui-gauge",
            "ui-chart",
            "ui-slider",
            "ui-form",
            "ui-text-input",
            "ui-number-input",
            "ui-file-input",
            "ui-button",
            "ui-button-group",
            "ui-dropdown",
            "ui-radio-group",
            "ui-switch",
            "ui-text",
            "ui-chart",
            "ui-form",
            "ui-number-input",
            "ui-switch",
            "ui-table",
            "ui-gauge",
            "ui-markdown",
            "ui-iframe",
            "ui-tabulator",
            "ui-radio-group",
            "ui-dropdown",
            "ui-button-group",
            "ui-file-input"
        ],
        "showPathInSidebar": false,
        "showPageTitle": false,
        "navigationStyle": "icon",
        "titleBarStyle": "fixed"
    }
]

```

can anyone suggest me to fix this issue

---

<div class="post-metadata">

**Author:** ![Nandhini-Subramaniya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nandhini-subramaniya/32/92882_2.png) [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Post date:** [18 November 2024 10:01 UTC](https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215/2 "2024-11-18T10:01:35Z")

</div>

I'm working on a Node-RED flow to display different dashboard pages based on the logged-in user's role. For example:

- When an admin logs in, they should only see pages for **admin**.
- When a guest logs in, they should only see pages for **guest**.

Currently, I’ve configured my flows to handle user role-based page switching. However, the dashboard always defaults to the **map page** on login, regardless of the user's role. I suspect this happens because the dashboard defaults to the first page in the configuration.

```
Why does the dashboard always default to the first page in the Node-RED dashboard configuration?
How can I dynamically redirect users to their appropriate page (admin or guest) after login?

```

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 November 2024 10:03 UTC](https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215/3 "2024-11-18T10:03:28Z")

</div>

I changed the tag for your post from node-red-dashboard to dashboard-2 so that the new dashboard developers notice your post 🙂

---

<div class="post-metadata">

**Author:** ![Nandhini-Subramaniya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nandhini-subramaniya/32/92882_2.png) [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Post date:** [18 November 2024 10:05 UTC](https://discourse.nodered.org/t/in-the-dashboard-ui-we-should-verify-the-role-to-show-and-hide-left-hand-side-pages-menus/93215/4 "2024-11-18T10:05:12Z")

</div>

okay thanks
