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?

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
10 comments

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 ✅ Solved 🪄 Remove Kudos

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 ✅ Solved 🪄 Remove Kudos

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 ✅ Solved 🪄 Remove Kudos

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
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Lisa K. Hi, I'm getting the following error code with this request.

I'm able to fetch data from other API requests like Folder, Workflows, etc. Do I need higher permissions / authorization to get the contacts? Please let me know. Thank you!

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Avatar
Cansu

Hi Amol Loya, welcome to the Community, and thank you for posting! I see that you're in touch with our Support team about this, please let me know if I can help you with anything else🙋🏻‍♀️

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

I really need a better filtering method as I got 12000 contacts on my instance, and it doesn't make any sense to loop everyone if I just want to get a few users' contact id. It will be the best to use email for filtering.

1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Avatar
Juan

Hi Alex Chan, thank you for sharing your use case with us. I have opened a ticket with our Support Team so one of our experts can contact you and provide an accurate response 👍
0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Hi Juan, can you share with us the solution given to Alex Chan ?

Many thanks.

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Avatar
Juan

Hello Alessandro Celli, welcome to the Community. Thank you for sharing your question with us, I can see that our Support Team is in touch with you to discuss your case. Our API experts are better equipped to assist you and they will be able to provide you with an accurate reply 👍

In case you have any additional questions, please let us know. Also, please feel free to check our New to Community forum to discover all the resources you can find in our Community 🙂

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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