Prefect 2.0. Is there a way to get the email addr...
# ask-community
t
Prefect 2.0. Is there a way to get the email address of whomever started the run? I tried using FlowRunContext.get().flow_run.created_by.display_value which looks like an email address but is missing the @ and periods.
1
m
The flow run context is just going to return the username for the user that kicked off the flow, you should be able to compare that against what's in the UI to determine the specific users email.
t
@Mason Menges I don't see how to get the email programatically. I can get the handle. Is there an api call to go from handle to email?