# Controlling Authorization and Multi-User Redirection in Dashboard 2.0: Understanding Webpage URL Generation

**URL:** <https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547>\
**Category:** Dashboard\
**Tags:** security, dashboard-2\
**Created:** [30 August 2024 03:44 UTC](https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547 "2024-08-30T03:44:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DhamodharanGopal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhamodharangopal/32/95512_2.png) [@DhamodharanGopal](https://discourse.nodered.org/u/DhamodharanGopal)\
**Post date:** [30 August 2024 03:44 UTC](https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547/1 "2024-08-30T03:44:52Z")

</div>

- I'm currently working with Dashboard 2.0 and need guidance on customizing middleware for authorization and handling multi-user [admin/read/write] redirection for specific pages.
- Could someone clarify where the web page URL is generated within the Dashboard 2.0 setup? Understanding this would help me implement the necessary control logic for redirecting users based on their roles.
- Any insights or pointers to relevant documentation would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [30 August 2024 10:56 UTC](https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547/2 "2024-08-30T10:56:28Z")

</div>

Couple of bits that will hopefully be useful:

- Dashboard Design Patterns: [Getting Started | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/getting-started.html#design-patterns)
- Building Multi tenant Dashboards: [Building Multi-Tenant Dashboards | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/user/multi-tenancy.html)

If you're looking at middleware though, then the above may be too high level. The webpage is a factor of Node-RED settings (`httpAdminRoot`), the `path` of the `ui-base` config node (hardcoded to `/dashboard` currently) and then the path the respective pages, which is defined on each page's configuration.

---

<div class="post-metadata">

**Author:** ![DhamodharanGopal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhamodharangopal/32/95512_2.png) [@DhamodharanGopal](https://discourse.nodered.org/u/DhamodharanGopal)\
**Post date:** [30 August 2024 11:53 UTC](https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547/3 "2024-08-30T11:53:47Z")

</div>

Thanks a ton !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 September 2024 11:53 UTC](https://discourse.nodered.org/t/controlling-authorization-and-multi-user-redirection-in-dashboard-2-0-understanding-webpage-url-generation/90547/4 "2024-09-29T11:53:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
