Recent searches


No recent searches

Automatically set checkbox to True on end user creation

Answered


Posted Dec 02, 2023

I assume the event webhook for User Created could be used for this, but I'm not sure how to go about it. What is the User Created webhook supposed to be used for? Can I use it to automatically set a checkbox (or add a tag) on said user, or is there a better way to do that?

(I'm a beginner with APIs, but I've already successfully been able to update ticket subject lines through triggered webhooks.)

Here's where I'm at:

(where "text-consent-needed" is a checkbox on the profile)

I have a User Created event webhook for account created at this end point: https://subdomain.zendesk.com/api/v2/users/{{user_id}}.json

Subdomain removed by the Zendesk Community Team to avoid private data being shared. 

I think my problem is that I'm using the user event, but I can't figure out how to trigger a webhook without it.


0

1

1 comment

image avatar

Paolo

Zendesk Engineering

Hi Antonya,
 
I just want to confirm, that the main goal here is just to set the custom field checkbox to "true" upon end-user creation. Right? If that is the case, you can simply use the Create User API endpoint and you don't need to associate it with an event webhook. You just need to set the user_fields property in your payload and declare the field key of your custom checkbox field. More information here. You may refer to the sample below as well.

 

 
Best,
Paolo | Technical Support Engineer | Zendesk

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post