Forums/Product news and updates/API updates

Verify user identities upon creation

Steven Yan
posted this on June 14, 2012 13:43

By default, Zendesk sends a verification email to a user when the user's email address is added to a profile.  We have added the ability to disable this upon adding an email address to a user profile.  To do this, you can now set verified: true when creating a user identity and this will suppress the verification email.  

curl -u user@domain.com:password https://yourhelpdesk.zendesk.com/api/v2/users/5246746/identities.json -X POST -H "Content-Type:application/json" -d '{"identity":{"type":"email", "value":"user@newdomain.com", "verified":true}}'

{
  "identity": {
    "type": "email",
    "verified": true,
    "url": "https://yourhelpdesk.zendesk.com/api/v2/users/5246746/identities/22...",
    "primary": false,
    "user_id": 5246746,
    "value": "user@newdomain.com",
    "created_at": "2012-06-14T20:40:58Z",
    "id": 226556146,
    "updated_at": "2012-06-14T20:40:58Z"
  }
}