Local User ID

Kyle's Avatar

Kyle

07 Feb, 2011 05:53 PM

Is there a way to determine the user ID of the user who is authenticated? It would be very helpful in being able to show my tickets without having the force the user to select themselves from a list.

  1. 1 Posted by Nicole on 07 Feb, 2011 06:11 PM

    Nicole's Avatar

    I believe the way you'd get the current logged in user's details based on their API key is to use the query responsible:me.

    Let me know if you have more questions.

    Thanks,
    Nicole

  2. 2 Posted by Kyle on 07 Feb, 2011 06:15 PM

    Kyle's Avatar

    If I understand you correctly then there is api support call to get the current user? The correct steps would be to request tickets, do a search for responsible until you find a me (if any tickets are assigned to the logged in user), then find the userID that the ticket is assigned to?

  3. Support Staff 3 Posted by Tiger Team on 07 Feb, 2011 06:39 PM

    Tiger Team's Avatar

    If you are looking for the user's tickets, just set the query to 'responsible:me'. If you're looking for the user's ID for another reason, use the token request (at the bottom of this page) - http://lighthouseapp.com/api/users

  4. Amanda Harasty closed this discussion on 17 Feb, 2011 09:26 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac