# $json.groups

**URL:** <https://community.n8n.io/t/json-groups/79321>\
**Category:** Questions\
**Tags:** data-transformation, support-solved\
**Created:** [February 18, 2025, 8:44pm UTC](https://community.n8n.io/t/json-groups/79321 "2025-02-18T20:44:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Well\_Armed\_Ogre](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/well_armed_ogre/32/58908_2.png) [@Well\_Armed\_Ogre](https://community.n8n.io/u/Well_Armed_Ogre)\
**Post date:** [February 18, 2025, 8:44pm UTC](https://community.n8n.io/t/json-groups/79321/1 "2025-02-18T20:44:32Z")

</div>

So I’m pulling my hair out, new to N8N and having to dust off my limited javascript skills. So I have a data pull from a vendor, on our users and their assigned groups. I’m going to simply pull these into a table for reporting. I’ve done this a bunch in python.

So we decided it would be a good use case for N8N, of course I run into an odd one. The Data has a sub array named Groups. if I try to rename the field, for another sub array (adminroles) it’s fine. But N8N barfs on Groups

Any Direction would be appreciated,

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/1/f168b9a0b52785c77662be579b04dd1aa682a979.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/e/5e898fba0f666f52edf8388ecc1af7f4244fe4e4.png)

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 18, 2025, 8:44pm UTC](https://community.n8n.io/t/json-groups/79321/2 "2025-02-18T20:44:34Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [February 18, 2025, 10:10pm UTC](https://community.n8n.io/t/json-groups/79321/3 "2025-02-18T22:10:49Z")

</div>

There shouldn’t be anything special about the name “groups”. The workflow below runs fine.

It’s hard to tell what your data structure is from the screenshot. Redacting and posting a sample of the actual JSON would help.

---

<div class="post-metadata">

**Author:** ![Well\_Armed\_Ogre](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/well_armed_ogre/32/58908_2.png) [@Well\_Armed\_Ogre](https://community.n8n.io/u/Well_Armed_Ogre)\
**Post date:** [February 19, 2025, 1:26pm UTC](https://community.n8n.io/t/json-groups/79321/4 "2025-02-19T13:26:19Z")

</div>

I found it.

The first record in the data set has a value set for adminGroups, the same first record does not groups record, so it’s undefined, added ||“” and i’m good.

---

<div class="post-metadata">

**Author:** ![BramKn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bramkn/32/11894_2.png) [@BramKn](https://community.n8n.io/u/BramKn)\
**Post date:** [February 19, 2025, 1:34pm UTC](https://community.n8n.io/t/json-groups/79321/5 "2025-02-19T13:34:00Z")

</div>

Don’t forget to mark as solved 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 26, 2025, 1:34pm UTC](https://community.n8n.io/t/json-groups/79321/6 "2025-02-26T13:34:51Z")

</div>

Closed on February 26, 2025, 1:34pm UTC

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