https://dagster.io/ logo
#dagster-cloud
Title
# dagster-cloud
q

Qwame

03/10/2023, 5:09 PM
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

rex

03/10/2023, 5:10 PM
it’s available as a tag in run
q

Qwame

03/10/2023, 5:11 PM
Does that mean I have to go through the event logs for a given run id to get the user email?
r

rex

03/10/2023, 5:11 PM
no, you can access the underlying run’s tags through the context
q

Qwame

03/10/2023, 5:12 PM
Any example code please?
r

rex

03/10/2023, 5:12 PM
user_email = context.run.tags.get("user")
should work here
ty spinny 1
4 Views