Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Replacement for "com.atlassian.jira.bc.user.search.UserSearchService" and "findUsersBy" for Jira 6.4

Rupa Jain January 19, 2018

Is there any equivalent class for "com.atlassian.jira.bc.user.search.UserSearchService" for Jira 6.4.2 ? And also corresponding method for "findUsersByFullName" ?

If yes, then please provide the code for the same.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2018

Have look at UserManager

https://docs.atlassian.com/software/jira/docs/api/7.1.7/com/atlassian/jira/user/util/UserManager.html

You can get the class by ComponentAccessor.getUserManager().

You could iterate over all users using(I did not check the code though)

ComponentAccessor.getUserManager().getAllUsers().filter{it.getDisplayName().equals("displayName")}

TAGS
AUG Leaders

Atlassian Community Events