07-11-2019 11:25 PM
Hello Experts,
Can someone help me to understand about triggered task execution.
For eg:-
User1 created one triggered task and share the triggered task URL to User2 for execution.
So User1 is task owner.
When user2 hit the triggered URL,then in dashboad User2 name should come right ?instead of User1 name.
if Username is showing owner information in dashboard then how to get User2 details,because task is executed by User2 not User1 of Same org.
07-12-2019 07:03 AM
You are correct – when the pipeline executes, it executes with the permissions of the task owner even if another user triggers it. So in the dashboard, it shows the task owner rather than the user who triggers it because that’s really the user who is executing the pipeline.
A triggered task can be authorized by using a username/password or a bearer token. When the task is triggered, the method of authorization is recorded. In the case of a username/password, it would store the username. So in your example it would show user2 there.
I don’t see that detail exposed anywhere in the UI. Let me ask around or see if an enhancement should be filed.
07-12-2019 09:20 AM
Thanks @tlikarish for response. we are looking for user2 information.
07-12-2019 10:58 AM
Sounds like this isn’t exposed in the UI yet. I’ll work on getting an enhancement filed for this feature.
07-15-2021 11:49 PM
@tlikarish what is use of service account, it seems to be useful for authorization to call a trigger task but it is failing but task owner id and password is working as basic authorization.