Forums/Community/Zendesk API

Answered

Creating user with fake password (ruby API)

Nima Gardideh
asked this on July 04, 2012 09:35

Hey,

I have SSO enabled for our web-app and I would like to create zendesk users when users sign up on our side.

However, when I do create users – they're asked to set a password. This seems redundant and I don't want to spam our users.

 

I've tried setting a fake password, but that didn't work as 'password' seems to be a 'restricted key'.

I'm using the ruby gem provided by zendesk: https://github.com/zendesk/zendesk_api_client_rb

 

 

The only other solution I can think of (to create an actual zendesk user) is to redirect the user (after signing up) to sign into zendesk as well and then do a /search and find the zendesk user id. Which seems like a hack to me and is already way too many redirects!

 

This is high priority for us. Please advise on how we can move forward.

 

Comments

User photo
DeVaris Brown
Zendesk
Check Answer

This is a feature we're looking into but I can't make any promises for implementation.

November 29, 2012 20:40
User photo
Keith Garrod

Is this issue resolved with v2 of the api?

July 02, 2013 07:24
User photo
DeVaris Brown
Zendesk

Yes all you need to do is create a user with a verified identity. They won't be prompted to log into Zendesk.

July 02, 2013 07:32
User photo
Keith Garrod

Thanks for the quick response :). I just sent a support request asking how 
to do that without leaving my SPA. Can that be done with e.g. json calls?

July 02, 2013 08:49
User photo
DeVaris Brown
Zendesk
Check Answer

Yes it's one of the fields in the user JSON you can set. Just set verified to true on user creation.

July 02, 2013 14:30