Skip to content

Store user state in Audit Trail on certain user events #17507

Open
@sarahelsaig

Description

@sarahelsaig

Is your feature request related to a problem?

Currently if you have attached user settings (name, address, etc) they are not stored in Audit Trail events. (e.g. mentioned here) It would be good to store them on events that trigger when the User is changed.

Describe the solution you'd like

It would be good to either add an AuditTrailUserEvent.User property (for parity with AuditTrailContentEvent.ContentItem) or to create a separate AuditTrailUserStateEvent. Whichever makes more sense.

It should trigger on IUserEventHandler's past tense methods (e.g. on UpdatedAsync but not on UpdatingAsync). Unlike the current UserEventHandler it should not trigger on ILoginFormEvent to avoid cluttering.

Describe alternatives you've considered

I can't think of any.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions