0

How do i get the current user login from Shotgun ?

Hi All !

My flash launcher is now getting a very good context with all information i need. The last info i want to retrieve from Shotgun is the shotgun login of the user.

what is the method i need to return that info.

Thank's.

 

1 comment

  • 0
    Avatar
    Permanently deleted user

    Hey there Pierre!

    The method that toolkit currently uses for this is called sgtk.util.get_current_user() - you can read more about it in our reference documentation!

    Alternatively, you can also access this information on the context object itself - there is a user property which is populated with the current Shotgun user if this is known by the system. You can read more about the context.user property here.

    Hope this helps!

Please sign in to leave a comment.