Username of started printjob (via API)

Hi,
currently I collect the username out of the payload from the event PRINT_STARTED. This is working if I start the print via the Web-UI.
But if I start the print job via the rest-api (/api/job) the username is _api.

Any idea how I can receive the displayname of the user?

And what is the difference between user and owner in the payload? It is always the same.

BR
Olli

If you use the global API key, there's no user associated with it, it's global and hence "_api". Use a user key and it'll be the user.

And about the second question, owner is lways who started the job, user is who caused the state change. Eg if user a starts a job but user b pause it, the pause event will say a as owner and b as user.

2 Likes

thx, for the fast response!!!