# Getting user profile custom field via JS

**URL:** <https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257>\
**Category:** Feature\
**Created:** [18.Август.2015 17:08:54 UTC](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257 "2015-08-18T17:08:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [18.Август.2015 17:13:44 UTC](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257/2 "2015-08-18T17:13:44Z")

</div>

You want something like

```javascript
$.ajax("/session/current").then(function(result) {
  console.log(result.current_user.custom_fields);
});

```

---

_[View the full topic](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257)._
