# Best practices for populating user field via a link?

**URL:** https://meta.discourse.org/t/best-practices-for-populating-user-field-via-a-link/56697
**Category:** Development
**Created:** [February 1, 2017, 6:43am UTC](https://meta.discourse.org/t/best-practices-for-populating-user-field-via-a-link/56697 "2017-02-01T06:43:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DanielMarquard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danielmarquard/32/74010_2.png) [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)
#### Post date: [February 1, 2017, 6:43am UTC](https://meta.discourse.org/t/best-practices-for-populating-user-field-via-a-link/56697/1 "2017-02-01T06:43:35Z")

</div>

I want users to be able to click a link containing their user ID in a different application so that it can be stored in their Discourse profile. For example, `https://discourse.example.com/script?uid=1`

It’s a simple idea: click a link to authenticate in Discourse (if not already logged in), then store the value for `uid` in a Discourse user field.

I could also use a form if `PUT` is required over `GET`. Any idea what the best practice would be for achieving this?
