Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
12 replies
Answers
3 answers
Subscribers
8 subscribers
Views
14464 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Case-insensitive username search
Kyle Jorgensen
over 8 years ago
A list of usernames is coming into the system via an external source in an all-lowercase format. Is there a way to do a case insensitive username search in Appian? user() is case sensitive and usersearch() does not appear to have username as a search option.
OriginalPostID-251460
Discussion posts and replies are publicly visible
Top Replies
sureshg57
over 7 years ago
+2
suggested
Hi Kyle Jorgensen I think the usersearch function will work and I have tried this my own. check what version you are using for the plugin. I use Get Users By (Expression) (v2.2.3) . I was able…
Parents
0
rawich
over 8 years ago
Hi Kyle, given that all your users are known to be in all lower case, you can create a custom rule, call it something like myUser() or abcUser(). The rule only need to be as simple as:
user(lower(ri!username), ri!property)
Then let all developers/designers know to use this new rule instead of user(). If you name the rule specific enough for your organization, then you can just call it directly such as abcUser() and not rule!abcUser() without worrying that the name will clash with something else later.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Gregory Swanson
over 7 years ago
in reply to
rawich
I don't see why this or some version where both the incoming list and the lists of users to compare are transformed with lower() before comparing wouldn't work.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Gregory Swanson
over 7 years ago
in reply to
rawich
I don't see why this or some version where both the incoming list and the lists of users to compare are transformed with lower() before comparing wouldn't work.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data