Updating External ID via the API | Community
Skip to main content

Updating External ID via the API

  • December 26, 2024
  • 2 replies
  • 0 views

Billy12

If we have end users that can have multiple external IDs for the same email address, how do we handle that?

One idea was that whenever they log in to one of their accounts, we could update the external ID for their email to match that account. However, when we try to do that it we get an error: " {"email"=>[{"description"=>"Email: XYZ@gmail.com is already being used by another user", "error"=>"DuplicateValue"}]}

I thought we were selecting a user by their email and then updating it, is that not correct?

2 replies

Greg29
  • December 26, 2024

Hi Billy,

 

A user in Zendesk is only able to have a single external_id connected to their profile. To understand how the process works in a bit more depth, I'd recommend taking a look at this article.


James57
  • December 27, 2024

Hi @billy12 ,

Like Greg said, only one external id can be added to a profile, but perhaps you could leverage an additional custom field to help store the other ids as needed?  If you're looking to switch the external id, you should be able to do that with the update user endpoint.