I opened a ticket and Mayur @ PTC helped with this.
From JavaDoc:
public SearchCondition(Class targetClass,String anAttribute,String value,boolean caseSensitive) throws QueryException
Therefore, add the false argument to the method at the end.
Correct:
wt.query.SearchCondition(wt.org.WTUser.class,wt.org.WTUser.NAME,wt.query.SearchCondition.LIKE,userArray[z],false)
(Original):
wt.query.SearchCondition(wt.org.WTUser.class,wt.org.WTUser.NAME,wt.query.SearchCondition.LIKE,userArray[z])