Need to run telegraf service with specifed user in windows

I tried with win service to start telegraf service with Specified user in windows, , here i can change my credentials and start it.
But instead of this, Can i have option in telegraf code itself to start and execute the plugin with specified user. Can i pass credentials in code for these.
If so please let me know the options or share the steps.


If you need to customize the user that runs the Telegraf service in Windows, there is currently no way in the CLI to do this. You could file a feature request for this. Keep in mind some plugins require Administrator level access to work correctly.

Telegraf runs as one agent, so individual plugins are run as a part of that agent. There is also no way to run individual plugins as different users at this time.