# Set current User in Javascript

**URL:** <https://meta.discourse.org/t/set-current-user-in-javascript/70263>\
**Category:** Development\
**Created:** [September 18, 2017, 10:55am UTC](https://meta.discourse.org/t/set-current-user-in-javascript/70263 "2017-09-18T10:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [September 18, 2017, 11:11am UTC](https://meta.discourse.org/t/set-current-user-in-javascript/70263/2 "2017-09-18T11:11:04Z")

</div>

I’m sorry, but what’s your question? Here on Meta, `Discourse.User.currentProp('username')` evaluates to `"fefrei"` for me, so this seems to work 🙂

---

_[View the full topic](https://meta.discourse.org/t/set-current-user-in-javascript/70263)._
