# Add Broker credentials manager on the dashboard?

**URL:** <https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283>\
**Category:** General\
**Created:** [5 April 2023 17:01 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283 "2023-04-05T17:01:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisPereira](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@LuisPereira](https://discourse.nodered.org/u/LuisPereira)\
**Post date:** [5 April 2023 17:01 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/1 "2023-04-05T17:01:07Z")

</div>

Hi

Is there a way to allow the dashboard user to add a mqtt broker without having to entering the editor and edit the broker node?  
In other words, could you push the server host + user name and password to a broker node?

Thank you.  
Cheers, Luís Pereira.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [5 April 2023 17:16 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/2 "2023-04-05T17:16:45Z")

</div>

Hi @LuisPereira

This will be an extremely complex thing to do.

- MQTT connections are based on a Config node (so no simple messages to alter it)
- You will need to facilitate the ability to access the Node RED API's from the dashboard.

My answer to this: find a different way, but thats not to say someone here may have a solution - But personally, I really wouldn't.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 April 2023 20:26 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/3 "2023-04-05T20:26:58Z")

</div>

Not sure I recommend it any more than Marcus does but here you go - from the help panel:

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

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [5 April 2023 21:06 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/4 "2023-04-05T21:06:56Z")

</div>

Oh! Interesting - I didn’t think that was possible - nice to know

---

<div class="post-metadata">

**Author:** ![LuisPereira](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@LuisPereira](https://discourse.nodered.org/u/LuisPereira)\
**Post date:** [6 April 2023 09:49 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/5 "2023-04-06T09:49:09Z")

</div>

Thank you.  
Although I'm not sure where you found that, in my help panel within nodered editor I can't see that whether I search for broker or mqtt.  
Also, whats is the 'connect action' and where can I edit this?

Thank you for your help.

Cheers, Luís Pereira.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 April 2023 10:13 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/6 "2023-04-06T10:13:17Z")

</div>

> [@LuisPereira](#):
>
> Although I'm not sure where you found that, in my help panel within nodered editor I can't see that whether I search for broker or mqtt.

What version of Node-RED are you running?

Info is in the MQTT OUT and IN nodes

![chrome_WoPBP4U5O6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/399fc432e3d8c0259ecae626f738ffaeb2c68a2c.gif)

---

<div class="post-metadata">

**Author:** ![LuisPereira](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@LuisPereira](https://discourse.nodered.org/u/LuisPereira)\
**Post date:** [6 April 2023 10:48 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/7 "2023-04-06T10:48:31Z")

</div>

My bad, I was looking at the mqtt-broker only.  
Now I'm not sure if this action, broker and so on should go on msg. like this:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/454d7f93e8b8aca7bb1b748771e5988fe8510516.png)

But doesn't seem to be working.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 April 2023 11:08 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/8 "2023-04-06T11:08:36Z")

</div>

> [@LuisPereira](#):
>
> But doesn't seem to be working

No, that is not quite right

See example here: [Dynamic MQTT node's "actions-\>connect" guidance needed - #2 by Steve-Mcl](https://discourse.nodered.org/t/dynamic-mqtt-nodes-actions-connect-guidance-needed/58878/2)

---

<div class="post-metadata">

**Author:** ![LuisPereira](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@LuisPereira](https://discourse.nodered.org/u/LuisPereira)\
**Post date:** [6 April 2023 11:16 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/9 "2023-04-06T11:16:16Z")

</div>

Amazing example!  
Just Perfect!  
Thank you!

---

<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:** [5 June 2023 11:17 UTC](https://discourse.nodered.org/t/add-broker-credentials-manager-on-the-dashboard/77283/10 "2023-06-05T11:17:10Z")

</div>

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