Local User ID
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.
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
1 Posted by Nicole on 07 Feb, 2011 06:11 PM
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 Posted by Kyle on 07 Feb, 2011 06:15 PM
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?
Support Staff 3 Posted by Tiger Team on 07 Feb, 2011 06:39 PM
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
tokenrequest (at the bottom of this page) - http://lighthouseapp.com/api/usersAmanda Harasty closed this discussion on 17 Feb, 2011 09:26 PM.