--- title: "How to Change Username values on the User Record" slug: "how-to-change-username-values-on-the-user-record" updated: 2023-07-31T17:53:57Z published: 2023-07-31T17:53:57Z canonical: "help.rapididentity.com/how-to-change-username-values-on-the-user-record" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # How to Change Username values on the User Record ### Change a Username from studentID to the First Part of a User's Email 1. Open the Consumer Application in Studio and go to the **Advanced** Menu. 2. Find the application's **User** Record Mapping, then click the kabob menu and select **Details**. 3. Scroll down to the Field Mappings and find the **username** target field name. Again, click the kabob menu and select **Details**. 4. Change the **Value Type** from **Field** to **Expression**, then add the following script to the Value field: ``` function() { const email = SRC.email[0]; if (email && typeof email === 'string') { const emailSplit = email.split('@'); return emailSplit[0] } return '' } ``` 5. Select the checkboxes for **On Create** and **On Update**, then click **Save**. ![Change studentID to first part of Email.png](https://cdn.document360.io/4d958006-b877-42af-8de5-00e3bb7fe41d/Images/Documentation/Change%20studentID%20to%20first%20part%20of%20Email%281%29.png) 6. The next time the User jobs are run, check in the Data Explorer to ensure that the data is being applied correctly.