# How to get a single User info from \[ login + password \]

**URL:** <https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435>\
**Category:** Flowable Engine\
**Created:** [January 12, 2018, 1:29pm UTC](https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435 "2018-01-12T13:29:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erixx](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@erixx](https://forum.flowable.org/u/erixx)\
**Post date:** [January 12, 2018, 1:29pm UTC](https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435/1 "2018-01-12T13:29:12Z")

</div>

Hi,

I found processengine.getIdentityService().checkPassword(login,password)  
which return a boolean (i would like a single User)

I found processengine.getIdentityService().createUserQuery().userId(login).list();  
which returns a list of Users (i would like a single user)

Is there a function(login, password) which returns a single User ?

Regards  
🚕🚗🚒🚕🚗🚒🚕🚗🚒

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [January 15, 2018, 12:50pm UTC](https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435/2 "2018-01-15T12:50:59Z")

</div>

Hi,

You can use processengine.getIdentityService().createUserQuery().userId(login).singleResult() to get a single User object.

Best regards,

Tijs

---

<div class="post-metadata">

**Author:** ![erixx](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@erixx](https://forum.flowable.org/u/erixx)\
**Post date:** [January 16, 2018, 2:59pm UTC](https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435/3 "2018-01-16T14:59:07Z")

</div>

> [@erixx](#):
>
> userId(login).list()

Ok, but “userId(login).list()” says that several users may have the same login, if it is the case, which user is returned by userId(login).singleResult() ???

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [January 17, 2018, 7:40am UTC](https://forum.flowable.org/t/how-to-get-a-single-user-info-from-login-password/1435/4 "2018-01-17T07:40:39Z")

</div>

No, the list method is always there because it is generic as part of the user query api. With the same login there should always be one user that is found.

Best regards,

Tijs
