Jump to content

How to make publish look like published by another user?


vitek

Recommended Posts

Posted

Hello,

I am trying to use dedicated API key, however I'd like to make publish look like it was done by a specific user. What's the best way of doing so?

Thanks in advance!

Cheers.

Vit

Posted

@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:)

 

  • 1 year later...
Posted

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()

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...