Adding custom fields to users

Return to top

49 Comments

  • Arianne Batiles
    Zendesk Customer Care

    Hi Jahn Bronilla,

    Custom user fields can now be shown in the user data app. You need to click on the Settings (gear icon) and select the user fields you want to display in the app.  

    1
  • Jahn Bronilla
    Community Moderator
    Zendesk Luminary

    Thank you @Arianne Batiles

    0
  • Mgo Dono

    Is there a way to create a ticket field and sync the user fields into the ticket section? 

    0
  • Mehmet KIZILASLAN

    ticket field Where should I create it?

    0
  • Brett Elliott
    Zendesk Product Manager

    Hi Mgo Dono

    Is there a way to create a ticket field and sync the user fields into the ticket section?

    Not natively in Zendesk. I have seen some Zendesk customers achieve user <> ticket field syncing with custom scripts that use our public APIs.

    If you don't mind me asking, what are you trying to achieve by syncing user and ticket fields?

    0
  • Federico Vitale

    Hi! I'd like to implement something like this: since the service I'm selling is age and location specific, I want to ask the prospect customers to input also their DoB and ZIP code when submitting a request. I managed to add the custom fields to the tickets. Is there a way to update the customer values automatically once the ticket is opened? Alternatively, can I just feed the user info to the user without going through the ticket fields? Thank you in advance

    0
  • Dane
    Zendesk Engineering
    Hi Frederico,

    It's possible by utilizing Update APIs, Webhooks and Triggers.
     
    First is to create your webhook using the user update API.
     
    This will be the endpoint that you will use.
    https://<yoursubdomain>.zendesk.com/api/v2/tickets/{{ticket.requester.id}}.json
     

     
     
    The next step is to create the trigger that will utilize the webhook above. I have used these conditions to serve as your reference.
     

     
    This is the action.
     

     
    Please take note of the values inside the red and green box.
     
    {
    "user": {
    "userfields": { "test_user_field": "{{ticket.ticketfield_5064777944463}}"
    }
    }
    }
     
     
    "test_user_field": This is the Field Key found on the custom user field.
    "": This is the placeholder for the custom ticket field that you have created.
     
    You can freely add addition fields here like DoB and Location. 

    Once done, it should automatically update the user field value depending on the corresponding ticket field value each time a ticket is created.
     
    0
  • Federico Vitale

    Thanks, Dane!

    0
  • Phil Capezio

    Trying to accomplish the same thing, and I'm using all of the exact same settings, but not having any luck. In my use case, I'm trying to take the customer's city from a custom ticket field and add it to their profile with a custom user field. Both fields are text fields for reference. What am I missing? Thanks in advance. 

    0
  • Zsa Trias
    Zendesk Customer Care

    Hello Phil,

    It seems that you have created a trigger to run the webhook and populate the user field per Dane's solution above. 

    I would suggest checking the events of the ticket first to confirm if the trigger had run. 
    It must be that the conditions of the trigger weren't met which could be the reason why the webhook didn't apply the update. 

    0
  • Phil Capezio

    Caught the mistake.

    It's user_fields and not userfields

    {
    "user": {
    "userfields": { "test_user_field": "{{ticket.ticketfield_5064777944463}}"
    }
    }
    }
    0
  • Zsa Trias
    Zendesk Customer Care

    Awesome! Thanks for sharing! :) 

    0
  • Hayley Johnson

    Is it possible to customise the view for users based on brand? We have an integration that is pulling user ID's and other user information from different places for 2 different brands. Currently all fields show on the user page which looks messy. It would be good if we could only show the user fields relevant to the brand associated with that user? 

    0
  • Jahn Bronilla
    Community Moderator
    Zendesk Luminary

    Hayley Johnson  -  I guess best to have 2 different ticket forms if you need different ticket fields per brand. 

    0
  • Andres

    What user fields are not custom, I'm assuming name, email and phone come out of the box, but is there a way to see what the default user fields are? I can only find my custom user fields. 

    0
  • Noly Maron Unson
    Zendesk Customer Care

    Hi Andres,

    The default user fields are the ones natively found in your user profile details. You can check Viewing and editing your user profile in Zendesk Support and it should be under About your user profile details. Everything else is a custom user field.

    Hope this helps.

    1
  • Andres

    Thank you Noly Maron Unson - that's exactly what I was looking!

    0
  • Michael Le

    Hello I hope all is well, I'm having difficulties translating Custom Fields into Custom User Fields with a webhook as shown above with Dane's example, may I have someone take a look and see why the webhook is not firing nor trigger?

    We're trying to have a text custom Custom Field translate into a text custom User Profile Field via a webhook as we're unable to do so with triggers.

    Note the webhook originally gave me a 200 Okay response, but when I went in to take this snippet it came back as 404 Not Found.

    Thank you in advance.

    0
  • Brandon Tidd
    User Group Leader Community Moderator
    Zendesk Luminary
    The Humblident Award - 2021

    Hey Michael Le

    Your config looks sound - you might want to make sure you're using a valid requester.id in your test (or create a test ticket and see if it returns a different response).  Also, if your test data has commas in it, that might be throwing off the json.

    Cheers,

    Brandon

    0

Please sign in to leave a comment.

Powered by Zendesk