# POST/GET username parameter to Okta to prefill username

**URL:** <https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338>\
**Category:** OAuth/OIDC\
**Created:** [April 21, 2022, 6:21am UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338 "2022-04-21T06:21:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abole](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/abole/32/3030_2.png) [@abole](https://devforum.okta.com/u/abole)\
**Post date:** [April 21, 2022, 6:21am UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/1 "2022-04-21T06:21:15Z")

</div>

Hi Folks,

In the past I’ve passed in a `username` value as a querystring / GET parameter to Okta to prefill the username in the Okta login form/widget, and just worked out at a client’s request, that you can also POST it.

Is there any official Okta documentation which talks to this feature other than devforum refrerences? My client would like some certainty that this feature is stable before they rely on it.

They don’t want to use login\_hint with the querystring.

Thanks!

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [April 22, 2022, 12:14am UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/2 "2022-04-22T00:14:49Z")

</div>

Which URL are you talking about?

---

<div class="post-metadata">

**Author:** ![abole](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/abole/32/3030_2.png) [@abole](https://devforum.okta.com/u/abole)\
**Post date:** [April 22, 2022, 2:46am UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/3 "2022-04-22T02:46:51Z")

</div>

Hey @phi1ipp, really just triggering sign in so visiting https://.okta.com. Using the query string flavour, this URL would be https://.okta.com?username=testUSER@domain.com

I’ve also tested that a POST to https://.okta.com with username as a POST parameter in the body works.

Either the get or post options will prefill the username on the sign-in page.

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [April 22, 2022, 12:28pm UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/4 "2022-04-22T12:28:36Z")

</div>

Hi @abole , I could not recall seeing something like that in the official documentation. Maybe Okta folks can clarify

---

<div class="post-metadata">

**Author:** ![abole](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/abole/32/3030_2.png) [@abole](https://devforum.okta.com/u/abole)\
**Post date:** [May 2, 2022, 11:38am UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/5 "2022-05-02T11:38:14Z")

</div>

Thanks for looking into it mate

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 7:20pm UTC](https://devforum.okta.com/t/post-get-username-parameter-to-okta-to-prefill-username/20338/6 "2024-02-12T19:20:56Z")

</div>


