Hi there.
I was wondering if it was possible to get information about who ran a script as a variable inside it.
I have looked through the docs and I have tried using the this
keyword to get info but the user_id
from the context
seems empty. In my current setup, the script is directly activated from the dashboard as a button and the logbook clearly shows who pressed it, but I can’t figure out how to get the info inside the script.
Creating an automation to run it seems like a possible idea I haven’t tried yet, as I would like to keep it simple with only one script.
Does anyone know an easier solution to it or if it would even work?
Thanks in advance