How to remove external IDs from a user

Return to top

3 Comments

  • Mark Baker

    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
    }
    }
     
    0
  • Vladyslav

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

    1
  • Chris Woodard

    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

Please sign in to leave a comment.

Powered by Zendesk