# Default 'guest' name change

**URL:** <https://pdfjs.community/t/default-guest-name-change/56>\
**Category:** Technical Support\
**Created:** [June 8, 2020, 4:04am UTC](https://pdfjs.community/t/default-guest-name-change/56 "2020-06-08T04:04:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.sonawane](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vivek.sonawane](https://pdfjs.community/u/vivek.sonawane)\
**Post date:** [June 8, 2020, 4:04am UTC](https://pdfjs.community/t/default-guest-name-change/56/1 "2020-06-08T04:04:35Z")

</div>

Hi ,  
I want to change default user name ‘Guest’ to other name at runtime. i.e if user draws any annotation then after each drawn annotation i want to change or add user name to it.  
So is it possible to change user name at runtime for each annotation drawn ?

Could you please share relevant documentation for the same (if available).

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 8, 2020, 2:19pm UTC](https://pdfjs.community/t/default-guest-name-change/56/2 "2020-06-08T14:19:41Z")

</div>

Hey there!

You can use the [AnnotationManager.setCurrentUser](https://pdfjs.express/api/CoreControls.AnnotationManager.html#setCurrentUser__anchor) API to change the name of the current user. This will apply to any new annotations.

For more fine grained control, you can use the [AnnotationManager.setAnnotationDisplayAuthorMap](https://pdfjs.express/api/CoreControls.AnnotationManager.html#setAnnotationDisplayAuthorMap__anchor) function.

Hope this helps!  
Logan
