I think the issue you might be getting is because Terminal uses a GM proxy for macros. If I’m understanding right, I think you would be able to do what you want if the macro was simply ran on the user’s machine.
If that’s the case, there is currently one way to run macros from Terminal without a GM proxy. This requires Foundry V12+ as it uses Regions.

- Create a Region, make sure its in a location no users can access, so as to avoid this going off when you don’t want it.
- setup the region as shown in the picture (left & top right windows)
- Then open the “Trigger Regions” button on Terminal. Link your Region to the Terminal (bottom right). Simulate the same event found in the behavior you created.
- Make sure the chosen macro is given observer for everyone.
- You’re done, a new button will show in Terminal which can run macros on the User’s side.
from there you can get the user’s id with game.user.id
Again, not totally sure if I’m on the mark here. So, let me know more details if this isn’t what you had in mind.