# How do I get a user's id

**URL:** <https://community.dreamfactory.com/t/how-do-i-get-a-users-id/2015>\
**Category:** Schema & Data\
**Created:** [January 11, 2016, 3:22am UTC](https://community.dreamfactory.com/t/how-do-i-get-a-users-id/2015 "2016-01-11T03:22:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brunelamc](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Brunelamc](https://community.dreamfactory.com/u/Brunelamc)\
**Post date:** [January 11, 2016, 3:22am UTC](https://community.dreamfactory.com/t/how-do-i-get-a-users-id/2015/1 "2016-01-11T03:22:05Z")

</div>

In version 1.92, the user registration api returned the new user’s profile, including the user **id** from the df\_sys\_user table. In version 2.0, how do I get the user’s **id**? Each user needs to know their id, so that they I can use the {[user.id](http://user.id)} filter. However, the register api does not return any user data other that session information.

The idea is similar to [this suggestion](https://community.dreamfactory.com/t/how-to-implement-data-access-based-on-a-table-with-users-permissions/490/2?u=jeffreystables), but I need the logged in user’s **id** in order to use it “ **as a filter parameter in the query** ”

Thanks!

---

<div class="post-metadata">

**Author:** ![mattschaer](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/mattschaer/32/914_2.png) [@mattschaer](https://community.dreamfactory.com/u/mattschaer)\
**Post date:** [January 15, 2016, 3:53pm UTC](https://community.dreamfactory.com/t/how-do-i-get-a-users-id/2015/2 "2016-01-15T15:53:21Z")

</div>

@Brunelamc You can retrieve the registered users id from the GET system/user in API docs. Example:

GET [https://df-nachocheese.enterprise.dreamfactory.com:443/api/v2/system/user](https://df-nachocheese.enterprise.dreamfactory.com:443/api/v2/system/user)

would return user details as follows:

{  
“resource”: [  
{  
“id”: 2,  
“name”: “Riff\_Randall”,  
“first\_name”: “Joey”,  
“last\_name”: “Ramone”,  
“last\_login\_date”: null,  
“email”: "principle@rnrhs.com",  
“is\_active”: true,  
“phone”: null,  
“security\_question”: null,  
“confirm\_code”: null,  
“default\_app\_id”: null,  
“adldap”: null,  
“oauth\_provider”: null,  
“created\_date”: “2016-01-15 15:49:36”,  
“last\_modified\_date”: “2016-01-15 15:49:36”,  
“created\_by\_id”: 1,  
“last\_modified\_by\_id”: null  
}  
]  
}

Is this what you were looking for?

---

<div class="post-metadata">

**Author:** ![Brunelamc](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Brunelamc](https://community.dreamfactory.com/u/Brunelamc)\
**Post date:** [January 18, 2016, 4:47pm UTC](https://community.dreamfactory.com/t/how-do-i-get-a-users-id/2015/3 "2016-01-18T16:47:44Z")

</div>

I ended up retrieving it from the user/session api. I ended up having to do two requests as opposed to one, but it works.  
Thanks for the input!
