Title: get user id
Last modified: August 31, 2016

---

# get user id

 *  Resolved [simoasc](https://wordpress.org/support/users/simoasc/)
 * (@simoasc)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-user-id/)
 * Hello,
    how can i get user id when he is authenticated?
 * Thanks!
 * [https://wordpress.org/plugins/json-api-user/](https://wordpress.org/plugins/json-api-user/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-user-id/#post-7023778)
 * when you use ‘generate_auth_cookie’, you get response cookie and user node.
 * /api/user/generate_auth_cookie/?
 * id is the first attribute in the user node.
 *  [kanupriya](https://wordpress.org/support/users/kanupriya/)
 * (@kanupriya)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/get-user-id/#post-7024023)
 * Hi,
    I need the last logged in user details while userinfo without any parameter.
   Is it possible . If not then how to keep cookie value to use in another function?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘get user id’ is closed to new replies.

 * ![](https://ps.w.org/json-api-user/assets/icon-256x256.png?rev=1965790)
 * [JSON API User](https://wordpress.org/plugins/json-api-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api-user/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api-user/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [kanupriya](https://wordpress.org/support/users/kanupriya/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/get-user-id/#post-7024023)
 * Status: resolved