# Debug node when logged in as read only users

**URL:** <https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931>\
**Category:** General\
**Tags:** debug\
**Created:** [26 January 2024 04:07 UTC](https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931 "2024-01-26T04:07:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [26 January 2024 04:07 UTC](https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931/1 "2024-01-26T04:07:21Z")

</div>

Hello everyone,

I am working in a team, and I am the one who is developing the flows in node-red on remote PC.  
I do not want other team mates messing-up the flows/codes.  
I want them only to see the output of debug messages, thus I created for them logins as read-only user.

I noticed that when login as read-only users, I can not see the debug node output messages.

This is what I did:  
I opened two browsers. On one window I logged in as admin, and on other window I logged in as read-only. Both browsers were opening the same flow.  
On read-only window I can click to activate/deactivate debug nodes but did not effect the debug message viewer. Only when I activate/deactivate debug nodes in admin browser the debug message window on both browsers were effected.

Questions:

1. is that the normal behavior of debug node when logged in as read-only user?
2. how do I allow read-only user to see debug messages if not using debug nodes?

This is the version I use:

```auto
└─▪ node-red -v
26 Jan 03:45:08 - [info] 

Welcome to Node-RED
===================

26 Jan 03:45:08 - [info] Node-RED version: v3.1.3
26 Jan 03:45:08 - [info] Node.js version: v18.19.0
26 Jan 03:45:08 - [info] Linux 6.5.0-0.deb12.1-rt-amd64 x64 LE
26 Jan 03:45:08 - [info] Loading palette nodes

```

Best regards to you all!

---

<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:** [26 January 2024 18:25 UTC](https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931/2 "2024-01-26T18:25:14Z")

</div>

Welcome @iot.regenesis.

As a Read Only user - You cannot modify the state of a node, and enabling the debug node is a form of modification.

The permission needed is actually `debug.write`.

> <https://github.com/node-red/node-red/blob/9bd71319143a26f654810d0d05ccc08c7603a95d/packages/node_modules/%40node-red/nodes/core/common/21-debug.js#L269>

So maybe you as admin - just deploy the flow with the debug node enabled?  
or add the permission to the read only user to allow them to enable the debug node?

Note: I have not tested this myself  
@knolleary - would this be correct?

```auto
permissions: ["read","debug.write"]

```

---

<div class="post-metadata">

**Author:** ![iot.regenesis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iot.regenesis/32/100846_2.png) [@iot.regenesis](https://discourse.nodered.org/u/iot.regenesis)\
**Post date:** [9 February 2024 16:21 UTC](https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931/3 "2024-02-09T16:21:48Z")

</div>

hi @marcus-j-davies

Thanks for the explanation!

I had made their work easier by using [flogger node](https://flows.nodered.org/node/node-red-contrib-flogger) .. no need for them to login to nodered,

---

<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:** [23 February 2024 16:22 UTC](https://discourse.nodered.org/t/debug-node-when-logged-in-as-read-only-users/84931/4 "2024-02-23T16:22:31Z")

</div>

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