# \[BUG\] Tag writes that weren't permitted to write due to user permissions still get recorded in audit log

**URL:** <https://forum.inductiveautomation.com/t/bug-tag-writes-that-werent-permitted-to-write-due-to-user-permissions-still-get-recorded-in-audit-log/108803>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 23, 2025, 2:40am UTC](https://forum.inductiveautomation.com/t/bug-tag-writes-that-werent-permitted-to-write-due-to-user-permissions-still-get-recorded-in-audit-log/108803 "2025-07-23T02:40:37Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [March 18, 2026, 3:47pm UTC](https://forum.inductiveautomation.com/t/bug-tag-writes-that-werent-permitted-to-write-due-to-user-permissions-still-get-recorded-in-audit-log/108803/16 "2026-03-18T15:47:18Z")

</div>

🤔

I just tested and confirm that running the `runPrepUpdate` function with `skipAudit=False` DOES add an entry to the audit log. I also confirm that running the same script with `skipAudit=True` DOES NOT add an entry to the audit log.

I suppose there is some ambiguity in his statement:

> [@Automation Professionals' Integration Toolkit Module](https://forum.inductiveautomation.com/t/automation-professionals-integration-toolkit-module/74934/90):
>
> the call is simply never audited

There’s a recent post on lack of audit w.r.t. named queries:

> [@\[IGN-15680\]Way to audit named queries?](https://forum.inductiveautomation.com/t/ign-15680-way-to-audit-named-queries/114416):
>
> Using 8.1.47 vision with auditing turned onto a database datasource. I only just noticed this - queries run via system.db.runPrepUpdate queries gets audited in full to the audit log ie the full query itself is logged which is nice for seeing exactly what happened. The same does not happen when running UPDATE/INSERT statements via runNamedQuery in fact I don’t see anything. I would have expected either the full query or even just the namedQueryPath and the params (though the full query would b…

---

_[View the full topic](https://forum.inductiveautomation.com/t/bug-tag-writes-that-werent-permitted-to-write-due-to-user-permissions-still-get-recorded-in-audit-log/108803)._
