Jump to content

How to find out who updated a certain attribute


Tommy Kiser

Recommended Posts

Here is an API snippet you can use to find the user info associated with the change of an attribute's value. Note that not all changes/updates generate events, so this may not work universally, but for standard, built-in fields this should be useful.

for event in session.query('Event where parent_id is "<entity id>"'):
    print('Event data: {0} triggered by {1}'.format(event['data'], event['user']['username']))

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...