# Username is case-sensitive

**URL:** <https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 6, 2022, 10:50am UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290 "2022-05-06T10:50:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Kelly](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_kelly/32/30990_2.png) [@Joe\_Kelly](https://forum.inductiveautomation.com/u/Joe_Kelly)\
**Post date:** [May 6, 2022, 10:50am UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/1 "2022-05-06T10:50:05Z")

</div>

It looks like this topic may have been brought up, but I found out that usernames for users are case-sensitive. We decided to use people’s email addresses as their username, and when they login through the mobile app, the phone device (iPhone in this case, but Android might be the same) likes to automatically capitalize the first letter when they go to enter their username. Is this a bug? Feature? Is there a way to make it not case-sensitive?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 6, 2022, 3:02pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/2 "2022-05-06T15:02:30Z")

</div>

What version of Ignition are you using? The login form fields are supposed to have the [`autocapitalize`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize) turned off as of 8.1.8.

---

<div class="post-metadata">

**Author:** ![Joe\_Kelly](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_kelly/32/30990_2.png) [@Joe\_Kelly](https://forum.inductiveautomation.com/u/Joe_Kelly)\
**Post date:** [May 6, 2022, 3:08pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/3 "2022-05-06T15:08:10Z")

</div>

Ya, that’s what I thought, too. I’m on 8.1.15 and I just had a guy use his iPhone with the Perspective app to login, and it only worked if he manually changed the first letter to lowercase.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 6, 2022, 3:09pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/4 "2022-05-06T15:09:39Z")

</div>

You are using Ignition’s IdP? Can you look at the actual form (on a desktop) in browser devtools? My username field in the Ignition IdP looks like this:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/1/81185c20d2e57402a479c6f82e4e06fd5d4ba1b0.png)

---

<div class="post-metadata">

**Author:** ![Joe\_Kelly](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_kelly/32/30990_2.png) [@Joe\_Kelly](https://forum.inductiveautomation.com/u/Joe_Kelly)\
**Post date:** [May 6, 2022, 3:11pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/5 "2022-05-06T15:11:52Z")

</div>

Yes, I’m just using the default IdP. This is the username field:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/3417869bd3f5e4b0a8198a44d101c586c3600af7.png)

Also, I just tried my own username with a capital first letter and it consistently failed to log me in.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 6, 2022, 3:16pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/6 "2022-05-06T15:16:20Z")

</div>

Right, okay - so there's two things going on.

The mobile device _should not_ be automatically capitalizing the first letter, unless the mobile device is for some reason ignoring the autocapitalize attribute we're setting on the input.

The second thing that's going on is that IdP usernames are case sensitive. I think that depends on your backing user source, actually? I'm going to tag @jspecht in, because this isn't my area of expertise, but there's some context in a thread here that alludes to some of this being intentional (but this is a long time ago now, so I'm not sure if anything's changed):

> [@\[BUG-13315\] No IdP Response Data](https://forum.inductiveautomation.com/t/bug-13315-no-idp-response-data/23606/6):
>
> Ah that explains it. It appears that during authentication, the username is case insensitive, but when we perform the redirect back to the application (in this case, test login), we are performing a case sensitive lookup of the user’s information to fill in the attribute mapper and that lookup is based on how the user entered their username in the login form (in a case-sensitive fashion). I’m going to mark this as a bug on our side. We’ll figure out a better way to handle this. Thanks for sha…

---

<div class="post-metadata">

**Author:** ![Joe\_Kelly](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe_kelly/32/30990_2.png) [@Joe\_Kelly](https://forum.inductiveautomation.com/u/Joe_Kelly)\
**Post date:** [May 9, 2022, 8:50pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/7 "2022-05-09T20:50:13Z")

</div>

As another note I thought of, I’m using the employees’ email addresses as their username and the email address format is firstName.lastName, so I think the period in the middle is causing the iPhone keyboard to automatically capitalize the first letter. Not sure if that’s relevant, but wanted to bring it up.

---

<div class="post-metadata">

**Author:** ![VVVVVV](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@VVVVVV](https://forum.inductiveautomation.com/u/VVVVVV)\
**Post date:** [July 25, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/username-is-case-sensitive/59290/8 "2023-07-25T18:34:04Z")

</div>

Ran into this same issue. Scripts will error when retrieving roles from the user sources and/or names from On Call Rosters if the username in the active directory does not match what is returned by system.security.getUsername() Example: If the username on the Users, Roles webpage is user.name and getUsername returns User.Name there will be an issue. For most of our users, the username is User.Name, but someone is entering them as user.name during setup, but the rest of their entries have the first letter capitalized. It does not impact logging in to programs. Is there an alternate way to get a username from a program?
