# Custom user fields and presentation on profile (and popup)

**URL:** https://meta.discourse.org/t/custom-user-fields-and-presentation-on-profile-and-popup/40967
**Category:** Feature
**Created:** [March 13, 2016, 1:49pm UTC](https://meta.discourse.org/t/custom-user-fields-and-presentation-on-profile-and-popup/40967 "2016-03-13T13:49:40Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 20, 2016, 12:36am UTC](https://meta.discourse.org/t/custom-user-fields-and-presentation-on-profile-and-popup/40967/7 "2016-03-20T00:36:00Z")

</div>

> [@daath](#):
>
> How do I get the external\_id-field from the SSO though?

Answered here:

> [@(Retired) Use an ID in a custom user field to link to a user's external profile](https://meta.discourse.org/t/link-custom-user-field-to-external-website/41218/11):
>
> You will have to save the user external\_id in custom field when creating SSO record. See example here: Or you can fill the custom user field via sync\_sso method. For example: client.sync\_sso( sso\_secret: "discourse\_sso\_secret", name: "Test Name", username: "test\_name", email: "name@example.com", external\_id: "2" custom.user\_profile\_id: "2" ) Relevant [code here](https://github.com/discourse/discourse_api/blob/master/lib/discourse_api/api/sso.rb#L14-L16).

---

_[View the full topic](https://meta.discourse.org/t/custom-user-fields-and-presentation-on-profile-and-popup/40967)._
