Skip to main content
Solved

How to get amplitude_ids ans user_ids if we have the email ids of the users?


Hey, I just wanted to know, if there is any API support for getting the amplitude_ids and the user_ids if we only know email ids if the users?

Best answer by Saish Redkar

Hi @shivam 

Are you setting the user email id as one of your user property or using them as user id itself?

Currently the APIs like User Search and User Activity mostly have amplitude_id or user_id as the primary lookup parameter for user information.

So if your use case is to fetch user ids /amplitude ids by feeding any user property value, then afaik, this isn’t supported yet.

View original
Did this topic help you find an answer to your question?

3 replies

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1380 replies
  • Answer
  • April 6, 2023

Hi @shivam 

Are you setting the user email id as one of your user property or using them as user id itself?

Currently the APIs like User Search and User Activity mostly have amplitude_id or user_id as the primary lookup parameter for user information.

So if your use case is to fetch user ids /amplitude ids by feeding any user property value, then afaik, this isn’t supported yet.


  • Author
  • New Member
  • 1 reply
  • April 7, 2023

Hey, we want to delete certain users under our organisation and we only have their email ids. We referred this link: https://www.docs.developers.amplitude.com/analytics/apis/user-privacy-api/?h=delete#delete-users . 

This requires amplitude_ids, so I was wondering if there is a way to get amplitude_id by email id?

 

Thanks & Regards


Esther Trapadoux
Community Manager
Forum|alt.badge.img+9

@shivam You can look up an email address through the UI as seen in the screenshot. However, as for the API, if it is a custom user property we do not have an API function to search on custom user properties and their value. However, if the email is a Amplitude ID, Device ID, User ID, or User ID prefix, then you could use the User Search API as seen here.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings