Can a third party application pass its own username back to milestone event/audit log to show who is viewing a video stream in the third party application?

The third party application accesses milestone with a basic user or service account so the milestone log will show that user accessed the video, but i would like to tell milestone that it is a different user in its own log so when auditing access we can identify who it was that really accessed the video.

Just as the audit log will log who is viewing a video stream in the Smart Client it will do the same for a client application based on the MIP SDK.

Note. You should “enable user access logging”. (Management Client - Tools - Options - Server Logs)

I think what you are asking is why Milestone designed an implemented MultiUserEnvironment. Using this you can have a server service but each user have their own user context. In addition to the correct logging this also automatically ensures that the user has access to the right cameras based on the Role the user belongs to.

(Milestone Mobile Server is an example using the MultiUserEnvironment).

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/multiuserenvironment/readme.html&tree=tree_2.html

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_environments_login.html&tree=tree_4.html