How to Capture Device Type (Mobile/Desktop) in Audit Log for Perspective Sessions with Azure AD SSO

We are running a multi-plant SCADA project on Ignition Perspective with Azure AD SSO authentication. We have an existing audit table idaa_t_audit_event that is populated automatically by Ignition's built-in audit profile whenever a user logs in or out. The table structure is as follows:

Ignition's built-in audit profile inserts a row with action = 'login' automatically on every session start. However, it does not populate the device_type column — that column was added by us manually via ALTER TABLE.

We want to know from which device type (mobile app / desktop browser) each user opened their Perspective session, and store that in the device_type column of idaa_t_audit_event against their login row.

How can I do it? Any guidance from the community would be greatly appreciated. Thank you!

Not sure you can. But you can use a session startup event that extracts the desired information from session props and calls system.util.audit() with customized action, action_target, and/or action_value.

Thanks pturmel.

Also we want to track the pages accessed by the user :
We want to track which pages a user visits during a session, including:

  • The page path navigated to

  • The actor (username)

  • Timestamp of the visit

    Is it possible? if yes how?

Make a page onLoad() function that messages it to the gateway with the user and session details then audit log that message.

Can you please elaborate on that, it would be helpful. Thanks.