# How to add additional functionality to the grouping of nodes?

**URL:** <https://discourse.nodered.org/t/how-to-add-additional-functionality-to-the-grouping-of-nodes/85923>\
**Category:** Core Development\
**Created:** [26 February 2024 12:28 UTC](https://discourse.nodered.org/t/how-to-add-additional-functionality-to-the-grouping-of-nodes/85923 "2024-02-26T12:28:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://discourse.nodered.org/u/Jonathan)\
**Post date:** [26 February 2024 12:28 UTC](https://discourse.nodered.org/t/how-to-add-additional-functionality-to-the-grouping-of-nodes/85923/1 "2024-02-26T12:28:04Z")

</div>

I can't find the code where the grouping is implemented. For my thesis I want to extend this grouping of nodes to be able to restrict a group of nodes to acces the network or writing to files preventing certain cyber attacks. Any ideas where this code is located in the source code?

---

<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:** [26 February 2024 13:49 UTC](https://discourse.nodered.org/t/how-to-add-additional-functionality-to-the-grouping-of-nodes/85923/2 "2024-02-26T13:49:04Z")

</div>

Hi @Jonathan

In the runtime, groups are represented here: [node-red/packages/node\_modules/@node-red/runtime/lib/flows/Group.js at f0d0990b5a087f0abf954b8ba3b161c87ec53ca2 · node-red/node-red · GitHub](https://github.com/node-red/node-red/blob/f0d0990b5a087f0abf954b8ba3b161c87ec53ca2/packages/node_modules/%40node-red/runtime/lib/flows/Group.js)

The only meaningful runtime impact they have is being able to set env vars scoped to the group, so whether this is sufficient for your needs, I couldn't say.

Nick

---

<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:** [11 March 2024 13:49 UTC](https://discourse.nodered.org/t/how-to-add-additional-functionality-to-the-grouping-of-nodes/85923/3 "2024-03-11T13:49:19Z")

</div>

Closed on 11 March 2024 13:49 UTC

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