Skip to main content
Solved

User_id requirements

  • 9 July 2022
  • 1 reply
  • 1205 views

Hello guys, 

 

We are trying to find the user_id requirements. On the page:

https://www.docs.developers.amplitude.com/analytics/apis/http-v2-api/#keys-for-the-event-argument

we found a list with: "Invalid IDs", but why specific values ​there, were not understood.  I would like to get requirements for user id (user_id >= 5 symbols - ok, and?

Best answer by Denis Holmes

Hi @DiastroniX ,

 

This is a safety feature Amplitude has implemented. All User IDs must have 5 or more characters. Device IDs and User IDs must be strings with a length of 5 characters or more. This is to prevent potential instrumentation issues. If an event contains a device ID or user ID that's too short, the ID value is removed from the event. If the event doesn't have a user_id or device_id value, the upload may be rejected with a 400 status. Override the default minimum length of 5 character by passing the min_id_length option with the request.

 

I hope this helps!

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

1 reply

Denis Holmes
Team Member
Forum|alt.badge.img+8
  • Team Member
  • 448 replies
  • Answer
  • July 12, 2022

Hi @DiastroniX ,

 

This is a safety feature Amplitude has implemented. All User IDs must have 5 or more characters. Device IDs and User IDs must be strings with a length of 5 characters or more. This is to prevent potential instrumentation issues. If an event contains a device ID or user ID that's too short, the ID value is removed from the event. If the event doesn't have a user_id or device_id value, the upload may be rejected with a 400 status. Override the default minimum length of 5 character by passing the min_id_length option with the request.

 

I hope this helps!


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