Need a templating snippet

I’ve created an automation to fire off notifications to my phone whenever the garage door opens or shuts. I’d like to expand on it by providing information as to who opened or shut the garage door since I have multiple users. I can see the information in the logbook, but I don’t know the templating to add it to the notify service call. Could someone provide a code snippet for this?

It’s hard for us to provide specific help if you don’t provide your current automation.

The information in the logbook comes from the Context property.