How can I retrieve users contact ID?

I am just trying to make some basic calls with Postman to test and am having trouble figuring out how to get the contact ID of a user in order to query them.  Documentation is not much help, anyone have an example or could point me in the right direction?

0
4 comments
Spot On Innovative Approach Stellar Advice

Hi Tristan Stutzman, in order to get a Contact ID, you can run the call [GET]/contacts as described here: https://developers.wrike.com/api/v4/contacts/

This call will return a list of all users with associated attributes like contact IDs and email addresses:

​I hope this is helpful. Please let us know if you have additional questions 🤗

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

1
Spot On Innovative Approach Stellar Advice

Lisa - Using the metadata parameter for Contacts is it possible to return a single contact if you only know the email address in the profile?

Editing to add that I've since found another post for this problem but it is not resolved. It seems that the metadata is not the way to do this. But how is it possible to just return a single user by email address? Is it possible without returning the full list of users and then filtering it? https://help.wrike.com/hc/en-us/community/posts/360020650074-Possible-to-query-contacts-using-email-address- 

0
Spot On Innovative Approach Stellar Advice

Justin Flener, GET/contacts query pulls the list of all users of your Wrike instance with a minimal set of filters (such as me/deleted​). Despite the fact that its response contains the necessary parameters, additional filtering by email or license type can't be used in this method. Pulling the list of all users and filtering the response by needed parameter within your program would be the best workaround here.

I understand that the aforementioned solution isn't as straightforward as making a direct API call with the set filters, and we would appreciate it if you could submit your feedback to the Product feedback section of Wrike Community and elaborate on the use-case where such a feature could be helpful for your team. Other Community members will be able to upvote the post, and when your suggestion reaches 60 votes, it will receive a Product Feedback status. Let me know if you have any additional questions, and thank you so much for your help in advance 🙌

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

Lisa K. Thank you for the clarification. Filtering after receiving the data is trivial so that is fine, I just wanted to make sure I wasn't missing something.

0

Folllowing List for Post: How can I retrieve users contact ID?
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post