# Dashboard multiuser

**URL:** https://discourse.nodered.org/t/dashboard-multiuser/1537
**Category:** Dashboard
**Created:** [12 July 2018 17:49 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537 "2018-07-12T17:49:40Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![EnricoSx](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/enricosx/32/945_2.png) [@EnricoSx](https://discourse.nodered.org/u/EnricoSx)
#### Post date: [12 July 2018 17:49 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/1 "2018-07-12T17:49:40Z")

</div>

hi,  
i want create flow and dashboard with "admin" user and share this dashboard with read-only users.  
i read i need create one istance for every users, but i can i do?  
thanks for help.

---

<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: [12 July 2018 23:38 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/2 "2018-07-12T23:38:38Z")

</div>

You only need an instance of Node-RED for each user if you want each user to run a different set of flows.

If you want a read-only dashboard, you would normally just set up a Dashboard with just outputs and no inputs and let admins have access to the NR admin ui.

If you want more than this - bearing in mind that NR isn't really set up as authenticated multi-user - you would likely want to use a custom set of UI's (e.g. not Dashboard). You can craft these using the build in http nodes or use a helper such as uibuilder. There are then various ways to integrate user login and authorisation.

We would really need to know more about your requirements in order to give more a comprehensive response.

---

<div class="post-metadata">

### Author: ![EnricoSx](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/enricosx/32/945_2.png) [@EnricoSx](https://discourse.nodered.org/u/EnricoSx)
#### Post date: [13 July 2018 04:41 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/3 "2018-07-13T04:41:00Z")

</div>

Thanks for reply.  
i only want users (not admin) not access to editor

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [13 July 2018 09:08 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/4 "2018-07-13T09:08:38Z")

</div>

The documentation [here](https://nodered.org/docs/security) tells you how to secure the editor.

---

<div class="post-metadata">

### Author: ![jjose.peralta](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jjose.peralta](https://discourse.nodered.org/u/jjose.peralta)
#### Post date: [8 August 2018 20:59 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/5 "2018-08-08T20:59:09Z")

</div>

Hello  
I hope this is the right place to raise my dilemma  
I have Dashboard installed and running stable with a single user connected to localhost:1880/ui but when two or more are connected to the ui the dashboard becomes slow, it does not update, it is disconnected, it is unstable. I read the following:

Multiple Users  
This Dashboard does NOT support multiple individual users. It is a view of the status of the underlying Node-RED flow, which itself is single user. If the state of the flow changes then all clients will get notified of that change.

I do not know if this is a limitation of the dashboard.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [8 August 2018 21:14 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/6 "2018-08-08T21:14:21Z")

</div>

I believe you are using the word user to mean client browser. Connecting multiple client browsers should not cause any problem. The text you quoted was referring the ability to have multiple named users configured each with their own password.  
What do you see in the node-red log when it goes slow?  
Also tell us what hardware node-red is running on and what versions of node-red and node.js. You can get that information from the start of the node red log.

When you say multiple users I presume you mean multiple users on multiple PCs connected to the same server. Is that correct?

---

<div class="post-metadata">

### Author: ![jjose.peralta](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jjose.peralta](https://discourse.nodered.org/u/jjose.peralta)
#### Post date: [8 August 2018 22:27 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/7 "2018-08-08T22:27:21Z")

</div>

Thanks for your quick reply Colin

I have installed  
node-network 0.18.7: Maintenance Release  
nodejs v8.11.3  
Installed on an OPi Zero Plus (Linux orangepizeroplus 4.14.48-sunxi64)

I want to access the graphic interface of node-red-dashboard localhost:1880/ui from any cell phone, tablet, laptop, pc, etc.

the cited text is from this link [https://github.com/node-red/node-red-dashboard](https://github.com/node-red/node-red-dashboard)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [8 August 2018 23:35 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/8 "2018-08-08T23:35:14Z")

</div>

> [@jjose.peralta](#):
>
> I want to access the graphic interface of node-red-dashboard localhost:1880/ui from any cell phone, tablet, laptop, pc, etc.

on your local network only or from anywhere in the world?

If oyou want to do it from anywhere in the world there are many security issues you need to address so your network will not be attacked. Doing a google search will find old threads that discuess the issues.

---

<div class="post-metadata">

### Author: ![jjose.peralta](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jjose.peralta](https://discourse.nodered.org/u/jjose.peralta)
#### Post date: [8 August 2018 23:52 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/9 "2018-08-08T23:52:13Z")

</div>

It's for a local network.  
I understand the security levels that I must take, but it is only for a local network.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 August 2018 07:27 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/10 "2018-08-09T07:27:52Z")

</div>

> [@jjose.peralta](#):
>
> I want to access the graphic interface of node-red-dashboard localhost:1880/ui from any cell phone, tablet, laptop, pc, etc.

You can only use localhost on the device running node-red. I presume however that this is just an error in your post.  
You did not answer my question as to what you see in the node red log when it goes slow.

> [@jjose.peralta](#):
>
> the cited text is from this link [GitHub - node-red/node-red-dashboard: A dashboard UI for Node-RED](https://github.com/node-red/node-red-dashboard)

Notice the final sentence "If the state of the flow changes then all clients will get notified of that change" which indicates that multiple browsers can be connected at once.

Another question, are you running charts with a lot of datapoints? You can determine the number of datapoints on a chart by multiplying the number of lines by the sample rate (per minute) by the time range of the chart in minutes. If that is a large number then you may be overloading the pi sending all that data to the clients. Run `top` in a terminal on the pi to see if it is working hard.

---

<div class="post-metadata">

### Author: ![jjose.peralta](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jjose.peralta](https://discourse.nodered.org/u/jjose.peralta)
#### Post date: [9 August 2018 16:22 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/11 "2018-08-09T16:22:08Z")

</div>

OPI zero plus is my server, my access point. So I have installed the mosquitto broker.  
I have the following devices connected to the broker:

4 sonoff hacked with espurna  
1 NodeMCU current sensor sends data every 5 seconds.  
1 NodeMCU MQ2 sensor sends data only when requested  
2 NodeMCU curtain control  
3 NodeMCU with touch screens to turn the sonoff on and off and display the sensor data.

All this system works without major problem.

The next step I wanted to take was to have control through a web interface. The recommendation I found was node-red and node-red-dashboard.

I have 5 flows (5 tabs) I do not know if I add all the flow here.

Try with the browser of my cell phone accessing my broker 172.24.1.1:1880/ui and it works well, turn on and off lights with the switch, that is, all the buttons work well. the problem comes when I access from another cell phone or another laptop to address 172.24.1.1:1880/ui the switchs are not updated or updated after x seconds. sometimes I can not even access that address within my local network. It is as if only the first device that connects to the interface has priority and the rest of the browsers is slow.

I am sorry. where I see the node-red log.

the top command in the terminal shows me this among other executions  
`%CPU %MEM TIME+ COMMAND`  
`1.0 7.8 3:14.06 node-red`  
`0.3 0.0 1:53.02 mosquitto`

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 August 2018 19:56 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/12 "2018-08-09T19:56:46Z")

</div>

> [@jjose.peralta](#):
>
> I am sorry. where I see the node-red log.

I don't know about OPi, but on a regular pi running raspbian you can run  
node-red-log  
if node red is started using systemctl then you can also do  
sudo systemctl status nodered  
Alternatively it may be in /var/log/syslog  
or if you start node-red in a terminal then it will appear there.  
Please copy/paste here the start of the log when node red is started and also what you see when the second device connects.

---

<div class="post-metadata">

### Author: ![jjose.peralta](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jjose.peralta](https://discourse.nodered.org/u/jjose.peralta)
#### Post date: [10 August 2018 00:32 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/13 "2018-08-10T00:32:49Z")

</div>

I think I have solved my problem. change my server for a Raspberry Pi 3 B. and the node-red-dashboard UI is accessible without major problems from 3 cell phones and 2 laptops and everything works fine.

Apparently the problem was the WiFi OPI Zero Plus that does not provide connections from cell phones or laptops. the NodeMCU connect well.

OPI Zero Plus = Realtek RTL8189FTV, IEEE 802.11 b/g/n  
Raspberry PI 3 B = BCM43438 Wireless LAN IEEE 802.11 b/g/n

node-red-log showed nothing strange

Thanks Colin, zenofmud for your interest in helping me.

---

<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: [13 August 2018 14:41 UTC](https://discourse.nodered.org/t/dashboard-multiuser/1537/14 "2018-08-13T14:41:45Z")

</div>

I think that the OPI Zero Plus only has 256 or 512mb of RAM which may be an issue. When things get slow on an SBC, you should firstly check to see the memory and CPU utilisation. Pay particular attention to any swap/paging activity - this is especially slow on any SBC using an SD card as a main drive.
