# Why doesn't the default Tag group show up in searches or is exported to Json?

**URL:** <https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 12, 2024, 1:58pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903 "2024-09-12T13:58:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [September 12, 2024, 1:58pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/1 "2024-09-12T13:58:53Z")

</div>

Vision 8.1.38

I have an app where I need to change the Default Tag Group assignments for a many tags dispersed through multiple providers to another predefined tag group.

I though first, I'll search the tags for "Default" and do a find/replace. No, any other Tag Group is searchable but not Default.

Okay, so I'll do it externally, and export the tags to a Json file, and search/replace there. Also no, as when a Tag has a tag group of "Default", the Tag Group entry is not exported to Json.

Any way around this for globally searching/replacing the "Default" Tag group in tags, whether in one provider or across multiple providers?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [September 12, 2024, 2:16pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/2 "2024-09-12T14:16:41Z")

</div>

My understanding is that default values for tags aren't exported (for all configuration parameters/properties, not just the tag group). I don't know of a quick way of doing it, but I'm guessing it could be done with scripting of the exported file to add a tag group if it doesn't exist.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 12, 2024, 2:38pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/3 "2024-09-12T14:38:19Z")

</div>

I'm sure jq could do it:  
[https://jqlang.github.io/jq/](https://jqlang.github.io/jq/)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 12, 2024, 2:41pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/4 "2024-09-12T14:41:48Z")

</div>

This should do what you're looking for. You can use `system.tag.read*()` to get the values of any tag property default or otherwise. So you simply need to recursively browse your tags and write the value to any tag that isn't correct.

```python
def updateTagGroup(parentPath,currentTagGroup,newTagGroup):
    results = system.tag.browse(parentPath,{'tagType':'AtomicTag','recursive':True}).results
    readPaths = ['{}.tagGroup'.format(result['fullPath']) for result in results]
    tagGroups = {path:qv.value for path,qv in zip(readPaths,system.tag.readBlocking(readPaths))}
    writePaths = [k for k,v in tagGroups.iteritems if v == currentTagGroup]
    system.tag.writeBlocking(writePaths,[newTagGroup] * len(writePaths))

```

You may need to change the filter if UDT's are involved, but generally something like this will accomplish your goal.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 12, 2024, 2:42pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/5 "2024-09-12T14:42:47Z")

</div>

Have you tried using `system.tag.query()` ? (AKA the Tag Report Tool.)

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [September 12, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/6 "2024-09-12T15:03:06Z")

</div>

Yes, I have....It identifies the tags, but then I imagined I would need scripting without brute force to change them.

Edit:

Did not realize that I could globally select and change attributes in the Reporting tool! That's a powerful feature. I knew you could edit individual tags within the report, but never tried selecting multiples.

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [September 12, 2024, 3:03pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/7 "2024-09-12T15:03:57Z")

</div>

Perfect. Fortunately, my UDTs are predefined with the tag groups I needed. It's the few tags someone drug in from the OPC browser that I need to find and change.

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [June 25, 2025, 4:53pm UTC](https://forum.inductiveautomation.com/t/why-doesnt-the-default-tag-group-show-up-in-searches-or-is-exported-to-json/95903/8 "2025-06-25T16:53:38Z")

</div>

A further question on tag query tool. Why do UDTs and folders show up as Default Tag group? I dont see where a tag group is even associated with a folder or UDT instance, only the atomic tags under them.
