Hi team, do we have the email of the current logge...
# dagster-plus
q
Hi team, do we have the email of the current logged in user as a reserved variable in dagster cloud? My usecase case is to be able to send a message to the user who triggers a run based on a certain criteria
r
it’s available as a tag in run
q
Does that mean I have to go through the event logs for a given run id to get the user email?
r
no, you can access the underlying run’s tags through the context
q
Any example code please?
r
user_email = context.run.tags.get("user")
should work here
ty spinny 1