# Get userName from ClientContext or DesignerContext

**URL:** <https://forum.inductiveautomation.com/t/get-username-from-clientcontext-or-designercontext/78243>\
**Category:** Module Development\
**Tags:** sdk\
**Created:** [August 22, 2023, 4:00pm UTC](https://forum.inductiveautomation.com/t/get-username-from-clientcontext-or-designercontext/78243 "2023-08-22T16:00:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Maranda](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@Jonathan\_Maranda](https://forum.inductiveautomation.com/u/Jonathan_Maranda)\
**Post date:** [August 22, 2023, 4:00pm UTC](https://forum.inductiveautomation.com/t/get-username-from-clientcontext-or-designercontext/78243/1 "2023-08-22T16:00:12Z")

</div>

Hi all, how is it possible to get the current authenticated username from the ClientContext or DesignerContext? I only need the username. Thanks,

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 22, 2023, 4:33pm UTC](https://forum.inductiveautomation.com/t/get-username-from-clientcontext-or-designercontext/78243/2 "2023-08-22T16:33:07Z")

</div>

`GatewayConnectionManager.getInstance().getUsername()`

---

<div class="post-metadata">

**Author:** ![Jonathan\_Maranda](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@Jonathan\_Maranda](https://forum.inductiveautomation.com/u/Jonathan_Maranda)\
**Post date:** [August 22, 2023, 4:43pm UTC](https://forum.inductiveautomation.com/t/get-username-from-clientcontext-or-designercontext/78243/3 "2023-08-22T16:43:29Z")

</div>

Thanks a lot!
