# How to get MAC/WIn or Adobe username of current user?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-get-mac-win-or-adobe-username-of-current-user/12200>\
**Category:** UXP Plugin API\
**Created:** [September 28, 2026, 2:11pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-get-mac-win-or-adobe-username-of-current-user/12200 "2026-09-28T14:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![milevicm](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/milevicm/32/3016_2.png) [@milevicm](https://forums.creativeclouddeveloper.com/u/milevicm)\
**Post date:** [September 28, 2026, 2:11pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-get-mac-win-or-adobe-username-of-current-user/12200/1 "2026-09-28T14:11:55Z")

</div>

I used this function in my extension, and now I want to do something similar in my react plugin. Is there anyway to get the username of the mac/win user or if it’s easier to extract the Adobe username from Photoshop? Thanks

function getUserName() {

return (isMacOS()) ? $.getenv(“USER”) : $.getenv(“USERNAME”);

}
