# Audit profile not recording API data

**URL:** <https://forum.inductiveautomation.com/t/audit-profile-not-recording-api-data/80133>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 6, 2023, 12:13pm UTC](https://forum.inductiveautomation.com/t/audit-profile-not-recording-api-data/80133 "2023-10-06T12:13:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchika](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@Ruchika](https://forum.inductiveautomation.com/u/Ruchika)\
**Post date:** [October 6, 2023, 12:13pm UTC](https://forum.inductiveautomation.com/t/audit-profile-not-recording-api-data/80133/1 "2023-10-06T12:13:45Z")

</div>

I created an audit profile to record the activities done by the different users(create profile, edit profile, etc) and we are doing these operations using api calls.  
Can this be a reason(use of api call instead of queries) for not storing the operations in audit profile?

---

<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:** [October 6, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/audit-profile-not-recording-api-data/80133/2 "2023-10-06T14:31:45Z")

</div>

Yes, many script actions initiated on the gateway will not be audited because they're assumed to be trusted.  
Consider manually inserting a call to system.util.audit when you call the other modification functions.

---

<div class="post-metadata">

**Author:** ![Ruchika](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@Ruchika](https://forum.inductiveautomation.com/u/Ruchika)\
**Post date:** [October 17, 2023, 6:45am UTC](https://forum.inductiveautomation.com/t/audit-profile-not-recording-api-data/80133/3 "2023-10-17T06:45:50Z")

</div>

As per the following doc, it says that Audit profile records Creating,editing or deleting the user in gateway. But it is not working.

[https://docs.inductiveautomation.com/display/DOC81/Auditing+Actions+Reference](https://docs.inductiveautomation.com/display/DOC81/Auditing+Actions+Reference)

Can someone share why such things are not working in Audit profile.
