# Changing the Tag group of tags/Tag group

**URL:** <https://forum.inductiveautomation.com/t/changing-the-tag-group-of-tags-tag-group/71148>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [March 16, 2023, 9:47am UTC](https://forum.inductiveautomation.com/t/changing-the-tag-group-of-tags-tag-group/71148 "2023-03-16T09:47:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srushti\_Nagulwar](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Srushti\_Nagulwar](https://forum.inductiveautomation.com/u/Srushti_Nagulwar)\
**Post date:** [March 16, 2023, 9:47am UTC](https://forum.inductiveautomation.com/t/changing-the-tag-group-of-tags-tag-group/71148/1 "2023-03-16T09:47:24Z")

</div>

Hello Team,

```
   How to change the Tag Group of individual tags or UDT tags with script. I have bunch of tags so need script mechanism for changing it.

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/0015ffe33510632f24e0a5de234b04cbe1b9d610.png)

Thanks  
Srushti N

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 16, 2023, 12:20pm UTC](https://forum.inductiveautomation.com/t/changing-the-tag-group-of-tags-tag-group/71148/2 "2023-03-16T12:20:40Z")

</div>

Hi Srushti, you can use the **system.tag.configure()** function, the manual has some great examples that helped me when i first had to do this.  
[https://docs.inductiveautomation.com/display/DOC81/system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure)  
Basically, if you want to edit a whole folder it'll look something like this:

```auto
folderPath = '[Handling]Modo'
configs = system.tag.getConfiguration('[Handling]Modo', True)[0]['tags']
for config in configs:
	config['tagGroup'] = 'NewTagGroup'
system.tag.configure(FolderPath, configs)

```

---

<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:** [March 16, 2023, 4:13pm UTC](https://forum.inductiveautomation.com/t/changing-the-tag-group-of-tags-tag-group/71148/3 "2023-03-16T16:13:12Z")

</div>

You can also use the tag read and write functions to directly read and write the tagGroup subproperty of any live tag, which is likely going to be more performant, at scale, than configure().
