Impersonification Best Practices for Problem Comments, via API?

The issue of submitting comments on problems through the API, while integrating Dynatrace with other ITSM solutions, raises some questions.

One of them is that using the API through a single token delivers comments always as the same user.

What would be interesting is to be able to submit comments as a certain user. This of course raises some issues, namely under the authentication/authorization umbrella…

My best approach at the moment seems to be generating a token for each user, and then using it accordingly. It’s cumbersome but might work.

Has anyone dealt with this and have a more elegant/better solution?

Adding the user name as part of the comment-
“FROM USER XXXXXX : Comment”

@PacoPorro,

That is a work-around, with several issues, namely that the user cannot delete it.