# Active Directory Badge Authentication prefix and suffix problems

**URL:** <https://forum.inductiveautomation.com/t/active-directory-badge-authentication-prefix-and-suffix-problems/100993>\
**Category:** Ignition\
**Created:** [January 16, 2025, 6:33pm UTC](https://forum.inductiveautomation.com/t/active-directory-badge-authentication-prefix-and-suffix-problems/100993 "2025-01-16T18:33:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Murtagh](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@David\_Murtagh](https://forum.inductiveautomation.com/u/David_Murtagh)\
**Post date:** [January 16, 2025, 6:33pm UTC](https://forum.inductiveautomation.com/t/active-directory-badge-authentication-prefix-and-suffix-problems/100993/1 "2025-01-16T18:33:39Z")

</div>

Hi everyone,  
I have a problem that I can't seem to find a solution for in any of the documentations or after trolling through posts on the forum. This post [here](https://forum.inductiveautomation.com/t/badge-login-removing-delimeters/78388) is the closest thing to my situation, but I have some key differences.

My problem is that my badge number in Active Directory is only a subset of what you get when you get the values from the badge. I know my format is always going to be **XXXXXXXX\<8 character badge id\>YYYYYYY** but the values for X and Y aren't predictable so I can't append them in a badge lookup query.

Ideally, I would do a substring and grab the 8-character badge ID out of the middle of the string and check that against the badge values stored in Active Directory, but there doesn't seem to be a way to do that.

Is there a solution to this problem, or am I just out of luck?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 16, 2025, 6:54pm UTC](https://forum.inductiveautomation.com/t/active-directory-badge-authentication-prefix-and-suffix-problems/100993/2 "2025-01-16T18:54:38Z")

</div>

Huh. Looks like something worth a formal feature request. (On the [Ideas](https://ideas.inductiveautomation.com/) portal.)
