How to get ApplicationUser by username and password in programmatically

Hi Experts,

I have one code scenario there i have to get ApplicationUser by username and password in programmatically. Kindly suggest me some reference to solve this problem.

	IssueResult createResult = issueService.create( applicationUser, createValidationResult);

Take a look at the UserManager service:
https://docs.atlassian.com/jira/7.2.4/com/atlassian/jira/user/util/UserManager.html

In particular you’ll want:

getUserByName(String userName)
Returns an ApplicationUser based on user name.

or

getUserByKey(String userKey)
Returns an ApplicationUser based on user key.

I would recommend using userKeys since that will handle the username changing properly.

It got solved. please refer to below link: