Forum Discussion

kmiesse's avatar
kmiesse
Contributor
8 years ago

How to set the execution user

I am deploying projects to QA and developer stacks so that they can have their own copies of projects for testing and developing. I’m using the SnapLogic metadata snaps to delete and create pipelines and tasks. I need the executions of these pipelines to show up under the quality analyst’s or developer’s user email address so that they can view and control their executions in Dashboard under the My Executions “Show only:” filter. I have been changing every email address in the input document for creating tasks and pipelines (owner, updated_by, create_user_id, etc.) with these metadata snaps and I have changed the owner in the project’s permission. But with every attempt the Username in Dashboard is still my email address and not the email address of the user the tasks or pipelines were created with or the owner of the project. How can these tasks, pipelines or projects be configured so that their executions appear under a specific user when that user is viewing My Executions in Dashboard?

10 Replies

  • jpanikulam's avatar
    jpanikulam
    New Contributor II

    A related question to this that we’ve been working on is - How to use Service Accounts that pipelines can be run under in Prod? We don’t want production tasks to be run under any particular user’s credentials but rather under a Service Account instead.
    Please let me know your thoughts on SnapLogic best practices around this.

  • dmiller's avatar
    dmiller
    Former Employee

    There is currently no public API for changing the owner of an asset. You can file an enhancement request through Support if this is something you feel you need.

    • kmiesse's avatar
      kmiesse
      Contributor

      Thank you.

      1. Can you tell me what changing the owner of a project changes if it doesn’t change the Username in Dashboard?
      2. When using the SnapLogic Metadata snaps to create assets will the owner always be the owner of the asset being copied and will changing the owner on the input document not be effective?
      3. Also, can you tell me where the Username on an execution in Dashboard comes from? Maybe I can back into with that information.
      • akidave's avatar
        akidave
        Employee
        1. Project ownership controls who can grant access to the project. Assets within the project are owned by whoever created them, which can be anyone having write access to the project.
        2. Assets created with Metadata snap are created under the ownership of the user who ran the pipeline.
        3. Dashboard shows the user account under which the pipeline ran. Scheduled and triggered task executions show as the user who created the task.
  • For triggered tasks, the username field will show the user who created the task, the pipeline actually runs as the task owner. A change to show the task invoker username was done a few releases back. It is displayed as a new property called Remote User in the pipeline runtime info dialog, under the Extra Details tab. If the task was invoked with basic auth, this property will show the invoker username. If the task was invoked with some other authentication, like bearer token, this property will not show up, since we do not have the invoker details in that case.