I use

ivy.wf.getSecurityContext().findUser("username");

But this works case sensitive so that the same call with "USERNAME" as parameter does not find the same user.

I need to find a user case insensitive. How to do that?

asked 10.11.2011 at 06:44

Thomas%20Kohler's gravatar image

Thomas Kohler
(suspended)
accept rate: 0%


Unfortunately there is no such PublicAPI method. But what you can do is create a Java class which gets all users with

ivy.wf.getSecurityContext().getUsers()

Then loop over all users and compare them case insensitive and you should have what you want.

link

answered 10.11.2011 at 07:34

Tamas%20KIS's gravatar image

Tamas KIS
(suspended)
accept rate: 60%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37
×26

Asked: 10.11.2011 at 06:44

Seen: 2,019 times

Last updated: 10.11.2011 at 06:44