# Impersonification Best Practices for Problem Comments, via API?

**URL:** <https://community.dynatrace.com/t/impersonification-best-practices-for-problem-comments-via-api/45088>\
**Category:** Dynatrace API\
**Tags:** problems-classic, dynatrace-api\
**Created:** [April 10, 2024, 11:08pm UTC](https://community.dynatrace.com/t/impersonification-best-practices-for-problem-comments-via-api/45088 "2024-04-10T23:08:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 10, 2024, 11:08pm UTC](https://community.dynatrace.com/t/impersonification-best-practices-for-problem-comments-via-api/45088/1 "2024-04-10T23:08:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 11, 2024, 6:47am UTC](https://community.dynatrace.com/t/impersonification-best-practices-for-problem-comments-via-api/45088/2 "2024-04-11T06:47:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 12, 2024, 6:37pm UTC](https://community.dynatrace.com/t/impersonification-best-practices-for-problem-comments-via-api/45088/3 "2024-04-12T18:37:40Z")

</div>

[@PacoPorro](https://community.dynatrace.com/user/40713),

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