Clarification: behalf of & customer_id: guess

For Clarfification: What can and can’t do the customer_id: guess if used in a Create post?

From the docu im not sure: what happens if I use
“customer_id”: “guess:NonRegisteredUser@example”
Will the user be created if there is no match to the Mail adress and then be owner of the Ticket - what is with the User Name? What if the User isn’t created? is it case sensitive ?

Kind regards
Noah

Edit: Since im a ‚new User‘ and can’t post a pic or Link, the Box i refer is found under Rest API → Ticket endpoints → Create

Hi @N0ah.

If I am not completely mistaken, this guessing feature for the customer_id parameter is used in the following way:

  • Given e-mail address is validated (is it a proper e-mail address?)
  • Are we able to look up a user with the given mail address?
    • If yes, we’re using it as customer_id for the new ticket.
    • If no, a new user with the given e-mail address will be created.

Source: https://github.com/zammad/zammad/blob/stable/app/controllers/tickets_controller.rb#L114-L134

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.