Hi Ajay,
This is possible , but since the Advanced Audit Trail module is protected, you cannot change the getMutation logic directly.
A simple solution is to create your own microflow to retrieve the audit trail records instead of using the default one. In that microflow, you can add filtering based on the user role and only return the entries that the user is allowed to see.
Then use this microflow as the data source for your page.
This way, you don’t modify the original module, and you can fully control which audit entries are visible to which users.
Regards,
Reemali
You can keep Advanced Audit Trail (AAT) as-is and introduce a new entity, for example ATTGeneralized, which generalizes from the relevant AAT audit entity. Then:
If this resolves the issue, please close the topic.
hi,
Yes, this requirement cannot be achieved by modifying the getMutation logic in the Advanced Audit Trail module.
The Advanced Audit Trail module is protected by design, and the mutation logic used to generate changed values is not intended for customization or role-based filtering.
So filtering attributes directly inside Audit Trail processing is not supported.
The correct approach is:
The module already stores changes in entities like:
AuditTrail.LoggedObjectAuditTrail.ChangeAuditTrail.AttributeYou should reuse these entities.
Retrieve audit records using a microflow instead of default logic.
Example idea:
Example filtering:
AttributeName != 'Salary' AttributeName != 'InternalNotes' AttributeName != 'ConfidentialData'
If $currentUser has role Admin → Retrieve all audit changes Else → Retrieve filtered audit changes
Bind your page to the filtered list returned from the microflow.
Now:
getMutationThis may break updates and is not supported by Mendix.
Role-based filtering of changed values is possible
But not inside Advanced Audit Trail internal logic
Correct solution = Custom retrieval + role-based filtering