Recent searches


No recent searches

How to remove external IDs from a user



Edited Aug 21, 2024


6

6

6 comments

It is possible to remove the external id from a user using the API. You need the zendesk user ID of the user. You then make a POST request to http://xxxx.zendesk.com/api/v2/users/nnnn.json (where xxxx is your zendesk subdomain, and nnnn is the user ID), with this content:

{
"user": {
"external_id": null
}
}
 

-1


How can I find and delete the `external_id` for all users who have it?

1


curl https://DOMAIN.zendesk.com/api/v2/users/create_or_update.json \
  -d '{"user": {"external_id": null, "email": "USER_EMAIL_TO_UPDATE"}}' \
  -H "Content-Type: application/json" -X POST \
  -v -u ADMIN_EMAIL/token:API_TOKEN

0


image avatar

Tony

Zendesk Customer Care

Hi Андрей!
 
Thank you very much for sharing!
 
Best,

0


Am I understanding correctly that there is no manual way to remove the external ID when actively updating a user profile?

0


I have tried to create a new user with importing the csv file, having just name, email and external ID and that works. If i use the same file to import the same user, with another ID, it overwrites it.  But if i put blank ID to user, it doesnt remove it from their profile. This instruction doesnt work

0


Please sign in to leave a comment.