Forums/Community/Zendesk API

Answered

Deleting/removing External ID

Reneé Lasswell
asked this on June 25, 2011 09:12

I know that there's not a way to edit an external ID attached to an account from SSO, but I would very much like a way to delete the External ID from the account so that it can be reacquired. We have a case where one was accidentally attached and need to undo that.

 

Comments

User photo
Steven Yan
Product Manager
Check Answer

Hi Renee,

By "Account" I assume you actually mean "User"?  You can remove the external-id from a user via the API like so:

curl -u user@domain.com:password http://steven.zendesk.com/users/5246746.xml -X PUT -d '<user><external-id></external-id></user>' -H "Content-Type: application/xml" -v
June 27, 2011 09:42
User photo
Jeffrey Davidson
iasta

Now that the old API has been depreciated, the command will look more like this:

curl -v -u user@domain.com:password https://domain.zendesk.com/users/1234567.json -H "Content-Type: application/json" -X PUT -d '{user": {"external_id":""}}'

As a note - make sure you do the https, as the new API no longer accepts neither XML or non-SSL connections. I'm still waiting for the day that we get to set this in the UI.

December 13, 2012 12:14