Jump to content

How to make publish look like published by another user?


vitek

Recommended Posts

@Mattias: Many thanks! :)

@Remus: Original idea was just to simplify things - It takes care of making publish look like coming from the same username, which is logged on your system and you don't have to get the user API keys... if the system user and ftrack user names are matching ofcourse, so changing the name of the publish is hopefully just temporary patch:)

 

Link to comment
Share on other sites

  • 1 year later...

Hi Jen,

You'll want to find the Event object which was created in response to the publish and change the user_id. Unlike the info panel, the activity feed didn't seem to refresh automatically for me, so make sure to reload the page when you make your change.

 

event = session.query(
    'Event where action is "asset.published"'
    ' and parent_id is "{}"'.format(
        asset_version['id'])
).one()
event['user_id'] = cool_user['id']
session.commit()

 

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...