# Enable / disable audit by script (igntion edge)

**URL:** <https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176>\
**Category:** Ignition\
**Tags:** ignition83\
**Created:** [June 26, 2026, 9:21pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176 "2026-06-26T21:21:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 26, 2026, 9:21pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/1 "2026-06-26T21:21:36Z")

</div>

I would like to disable/enable the audit profile on Ignition edge.  
I do not find anything to do that directly in SDK.  
Perhaps I need to use 8.3.8 new system.config API ?

---

<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:** [June 26, 2026, 10:17pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/2 "2026-06-26T22:17:46Z")

</div>

Ultimately, you need to write an `enabled: false` value into the resource's attributes.

Are you trying to do this from a custom module, or in a scripting environment?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 27, 2026, 3:30am UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/3 "2026-06-27T03:30:50Z")

</div>

From a scripting environment

---

<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:** [June 29, 2026, 4:41pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/4 "2026-06-29T16:41:51Z")

</div>

Then yes, this is absolutely possible with `system.config`. Something like this:

```python
moduleId="ignition"
typeId="audit-profile"
name="MyAuditProfile"

existing = system.config.getResource(moduleId=moduleId, typeId=typeId, name=name)
if existing is None:
	throw ValueError("No such resource: %s/%s/%s" % (moduleId, typeId, name))

system.config.replace(
	moduleId=moduleId,
	typeId=typeId, 
	name=name, 
	signature=existing.signature, 
	enabled=not existing.enabled,
	files=existing.files
)

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 29, 2026, 5:49pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/5 "2026-06-29T17:49:14Z")

</div>

Thanks a lot. I think we will have lots of usecase for the new system.config API !

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 7, 2026, 2:04pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/6 "2026-07-07T14:04:07Z")

</div>

I suppose that **system.config.replace** trigger the listener for settings changed in the IA audit module which is immediatly aware of the new settings ?  
no need to execute some gateway rescan.

---

<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:** [July 7, 2026, 2:45pm UTC](https://forum.inductiveautomation.com/t/enable-disable-audit-by-script-igntion-edge/116176/7 "2026-07-07T14:45:31Z")

</div>

Correct. Just like the REST API, config changes here affect the in-memory model immediately, and are then synced to disk.
