# Login with employee ID instead of email address

**URL:** <https://devforum.okta.com/t/login-with-employee-id-instead-of-email-address/6470>\
**Category:** Questions\
**Created:** [October 2, 2019, 1:32pm UTC](https://devforum.okta.com/t/login-with-employee-id-instead-of-email-address/6470 "2019-10-02T13:32:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smstromb](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@smstromb](https://devforum.okta.com/u/smstromb)\
**Post date:** [October 2, 2019, 1:32pm UTC](https://devforum.okta.com/t/login-with-employee-id-instead-of-email-address/6470/1 "2019-10-02T13:32:49Z")

</div>

I’m attempting to set up one application in Okta to use our AD Employee ID instead of the email address as the username so that they can login to that application with their ID instead of an email address. So far I’ve configured and verified the following:

1. For the application, in “Sign on” settings, I’ve changed “Application username format” to be “AD Employee ID”
2. I’ve clicked the “Update Now” button within the “Update application username on” section.
3. I’ve verified in the “Assignments” tab of the application that each of the user’s username is currently their AD Employee ID
4. Whenever the user authenticates to the application, their user\_name is returned as the AD Employee ID.

However, they’re still having to login with their email address on the actual login page. Using their Employee ID results in the error message “Sign in Failed” but using their email address with the same password works even though their email address should no longer be their username for this application.

Can someone point me towards the right direction here?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [October 4, 2019, 3:26am UTC](https://devforum.okta.com/t/login-with-employee-id-instead-of-email-address/6470/2 "2019-10-04T03:26:44Z")

</div>

Hi @smstromb

Based on the description, I am assuming you are using Secure Web Authentication to authenticate users from Okta to your application.

Can you please confirm if the users in your application have the “AD Employee ID” username set? If not, they need to be changed through a provisioning option or manually.

---

<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:** [January 23, 2024, 7:25pm UTC](https://devforum.okta.com/t/login-with-employee-id-instead-of-email-address/6470/3 "2024-01-23T19:25:08Z")

</div>


