Forum Discussion
How to programmatically access “Submitted by” (pipeline runner) at pipeline or notebook runtime
Hi Yazdan,
deborshi_nag is correct, this info isn't available in the APIs, but the suggestion to try workspace monitoring is a great one.
I've seen some threads on the forum about workspace monitoring not properly logging pipeline runs, but it is worth a try if it works.
Workspace monitoring overview - Microsoft Fabric | Microsoft Learn
Hi Tayloramy,
Thanks for the reply,
How can we access the pipeline activity logs in the pipeline environment at runtime?
Do you have any sample code for this?
Thanks,
- tayloramy6 months agoSuper User
Hi Yazdan,
Once you enable Workspace Monitoring, you should be able to access the logs in the workspace monitoring eventhouse that is created.
I believe these logs include who executed the pipeline.
- Yazdan6 months agoAdvocate II
Hi tayloramy
Thanks for the guidance. I’ve enabled workspace monitoring and can now query the ItemJobEventLogs table.
However, in this table I can only see ExecutingPrincipalId, which is the GUID of the user who triggered the pipeline. I need to retrieve the actual user details (given name and family name).
Is there another table in the monitoring Eventhouse or somewhere else that contains user metadata which can be joined to ItemJobEventLogs to resolve the user name? Or any recommended approach to map ExecutingPrincipalId to a readable user identity?
Thanks