# Link user field type

**URL:** <https://meta.discourse.org/t/link-user-field-type/50077>\
**Category:** Feature\
**Created:** [13 Settembre 2016, 11:42am UTC](https://meta.discourse.org/t/link-user-field-type/50077 "2016-09-13T11:42:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [13 Settembre 2016, 11:42am UTC](https://meta.discourse.org/t/link-user-field-type/50077/1 "2016-09-13T11:42:41Z")

</div>

@tobiaseigen has a usecase with custom fields where he’s importing the name of an organisation, and a url, via sso, and wants to display it as a link with the name linking to the url. I can’t imagine user fields of this type - a url and a name - are a want unique to him.

It would seem sensible to me to add a new user field of the type `Link`, which accepts a name and url, and displays the name linking to the url.

No custom user field currently has two input boxes (at least, not that I’m aware of), and so I’m not sure what the most eloquent solution would be for this. I wonder if it might be to make the `Link` field type literally link other fields together. So, you’d have a form something like this:

 ![](https://global.discourse-cdn.com/meta/original/3X/d/d/dd1a1d1afdadb65957017ce7db1cf2ed1a836965.png)

There has been some similar discussion before:

> [@(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):
>
> Let’s say you want to add a link of User’s main profile page on Discourse user profile page and user card, clicking on that link will take user to main (external) website. The link of main website user profile page will be like: http://myawesomewebsite.com/user/USER\_PROFILE\_ID Let’s get started! Create a custom user field Let’s create a user field with name User Profile. Make sure “Show on public profile?” option is enabled. The above field will store external user profile IDs. A…

However this only works with one supplying some sort of username, and a base url common to all of the values of the field (which we don’t have here)

Also this:

> [@Custom User Field Enhancements](https://meta.discourse.org/t/custom-user-field-enhancements/31572/7):
>
> This is not something we are considering at this time. People can add URLs via the “About Me” field, and we have significant protection in that field.

However, the about me field doesn’t allow easy adding of links via sso

Would a PR be welcome?

---

_[View the full topic](https://meta.discourse.org/t/link-user-field-type/50077)._
