# Node restriction from multiple nodes

**URL:** <https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790>\
**Category:** Developing Nodes\
**Created:** [23 August 2022 06:09 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790 "2022-08-23T06:09:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [23 August 2022 06:09 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/1 "2022-08-23T06:09:38Z")

</div>

can we restrict the input of a node from a specific node , or is there any way we can make 2 nodes dependent to each other

---

<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:** [23 August 2022 06:47 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/2 "2022-08-23T06:47:01Z")

</div>

Are you designing a new node (to be published to the flows library like `node-red-contrib-my-new-node`)?

OR

Are you just using node-red? - if so, please move this to the #general category

* * *

The answer is different depending on the above ↑

---

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [23 August 2022 06:59 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/3 "2022-08-23T06:59:09Z")

</div>

if this can be achieved in node red only then fine otherwise can design a new node also

---

<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:** [23 August 2022 07:07 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/4 "2022-08-23T07:07:23Z")

</div>

Node-RED doesn't not provide any way to restrict what can be wired to what.

You could add some custom logic to your node that warns the user when an 'invalid' configuration is created. But there's not way to stop it being created.

---

<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:** [23 August 2022 07:43 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/5 "2022-08-23T07:43:05Z")

</div>

You might want to look at this thread as well.

> [@Is there an editor event on wiring up two nodes?](https://discourse.nodered.org/t/is-there-an-editor-event-on-wiring-up-two-nodes/66445/5):
>
> Thanks. Linting sounds great during design time. I'll take a look. @TotallyInformation As for the purpose, our custom node lib includes node clusters that are supposed to work within their own circles, so some kind of barricades are needed. I'd like to improve the affordance with explicit barricades so that people learn the node combination and the correct in/out port mapping with intuition as much as possible. Although there are the on-hover port tooltips and the help doc pane on the sidebar,…

---

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [23 August 2022 13:08 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/6 "2022-08-23T13:08:10Z")

</div>

how can we do that ? and do you know what is node credentials used for? how is it used.

---

<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:** [23 August 2022 13:42 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/7 "2022-08-23T13:42:39Z")

</div>

There are lots of ways it could be done.

If you can explain more fully what you want to do, we can advise the best way of achieving it.

As for node credentials... Rather than overload this one topic with lots of different questions, please start a new topic. And be sure to provide enough detail on what you are trying to do.

---

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [23 August 2022 13:51 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/8 "2022-08-23T13:51:51Z")

</div>

i want to make a node red flow like if i will deliver the node red flow to my client, they could not use all the nodes for their purpose, that is they cant do customization on their own on my node red flow

---

<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:** [23 August 2022 14:12 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/9 "2022-08-23T14:12:36Z")

</div>

That seems to be a very different scenario to what you asked at the start.

The adminAuth setting allows you to create a user who can view the flows, but not deploy any changes. Search for "securing Node-RED" in the docs.

But if they are running Node-RED for themselves, there would be nothing stopping them from disabling any security and modifying the flows themselves.

---

<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:** [22 October 2022 14:13 UTC](https://discourse.nodered.org/t/node-restriction-from-multiple-nodes/66790/10 "2022-10-22T14:13:25Z")

</div>

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