How to make publish look like published by another user?
3 3

7 posts in this topic

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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Sorry to revive an old thread, but is there any way to change the user for the Activity also? The change suggested by @Mattias Lagergren definitely changes the "Published By" property, but the Activities tab for the Asset Version still shows "<api user> published..." instead of the user I specify in the `user_id`.

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
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
3 3