# Custom Username for WebApplication

**URL:** <https://devforum.okta.com/t/custom-username-for-webapplication/1087>\
**Category:** Questions\
**Created:** [January 19, 2018, 2:38pm UTC](https://devforum.okta.com/t/custom-username-for-webapplication/1087 "2018-01-19T14:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valerio.cupelloni](https://avatars.discourse-cdn.com/v4/letter/v/7cd45c/32.png) [@valerio.cupelloni](https://devforum.okta.com/u/valerio.cupelloni)\
**Post date:** [January 19, 2018, 2:38pm UTC](https://devforum.okta.com/t/custom-username-for-webapplication/1087/1 "2018-01-19T14:38:20Z")

</div>

Hi,  
I’ve some troubles defining the username format for registered application.

I’ve created my application in Okta dashboard as:

Platform -\> WEB  
Sign-on Method -\> Secure Web Application

After that I’ve specified Login URL e Login Redirect URL.

About the “Sign-on Methods” section, here is my configuration:

 ![okta2](https://global.discourse-cdn.com/oktadev/original/1X/3e22d2f03cf6e3af00ed4366654e8f548aebbc94.png)

For Username I would like to use this custom format:  
first letter of firstName merged with full lastName, all in capital letters.

Something like this should work?  
{f:substring(f:toUpperCase(user.firstName), 0, 1)}{f:toUpperCase(user.lastName)}

Why when I try to login throught the link generated in the “General” section, the only username accepted is the user’s email?

---

<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 12, 2024, 10:03pm UTC](https://devforum.okta.com/t/custom-username-for-webapplication/1087/2 "2024-01-12T22:03:00Z")

</div>


