# Issue with new user creation - Email being used for login

**URL:** <https://devforum.okta.com/t/issue-with-new-user-creation-email-being-used-for-login/11687>\
**Category:** Questions\
**Created:** [November 10, 2020, 2:47pm UTC](https://devforum.okta.com/t/issue-with-new-user-creation-email-being-used-for-login/11687 "2020-11-10T14:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambine](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@ambine](https://devforum.okta.com/u/ambine)\
**Post date:** [November 10, 2020, 2:47pm UTC](https://devforum.okta.com/t/issue-with-new-user-creation-email-being-used-for-login/11687/1 "2020-11-10T14:47:10Z")

</div>

Hi all,

Last Thursday when using the OKTA Create User APIs, we started seeing issues in our OKTA environment where the Login field was being ignore and the login name was being set as the email address.

Example:

{

“profile”: {

```
"firstName": "Amber",

"lastName": "Test",

"email": "test12345@azblue.com",

"login": "test12345"

```

},

“credentials”: {

```
"password" : { "value": "{{password}}" }

```

}

}  
The request above has its own value for email and login, but after this user was created, the login was set to the email address.

For a couple of years now, my organization has been able to set the login field independently of the email address field. Looking at the User Profile Mapping, nothing has changed. Has anyone seen this issue before? Any help would be greatly appreciated!

Thanks,

Amber

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [November 10, 2020, 8:18pm UTC](https://devforum.okta.com/t/issue-with-new-user-creation-email-being-used-for-login/11687/2 "2020-11-10T20:18:42Z")

</div>

Hi @ambine! Please open a support ticket through an email to [support@okta.com](mailto:support@okta.com) with this issue. You may be missing the feature flag UD\_MAP\_FIELD\_TO\_LOGIN; one of our Support Engineers can enable this in your org for you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 25, 2024, 11:23pm UTC](https://devforum.okta.com/t/issue-with-new-user-creation-email-being-used-for-login/11687/3 "2024-01-25T23:23:21Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
