Ability to set Requester:Organization from Triggers

48 Kommentare

  • Melanie Hobman

    I jumped the gun a little, using the HTTP trigger removed all the organisations from the user and updated the Organisation to only the last one set by the trigger.  Over 200 tickets updated to the incorrect Organisation because the tickets are being generated from a single email address for multiple customers.


    The trigger would work if only one Organisation was required for the particular email address making the request but in our case we need to align just the ticket generated to the correct Organisation based on the email address it's received at, but I think I may be able to achieve this by using the below instead.



  • Warren Ridley


  • Abed Islam


    Props to James. That was awesome. That was my introduction to Webhooks and the ability to use Zendesk API from within Zendesk to make up for what you can't already do in Zendesk. You just have to be weary of your conditions so your updates only apply when you want them to. But that was awesome.


  • Risetime

    Hi can someone help me with the work-around James mentioned, I followed his instructions, but my authentication is not working properly. I am not sure what I am doing incorrect. What should I be using as Basic Authentication:

    I used my username and password, but I get an error that says {"error":"Couldn't authenticate you"} 


  • Peter Hochstrasser


    You try to feed information back into your Zendesk domain, so this is a "internal" call.

    I suggest that you use an API Token instead of basic auth. That makes things a bit more secure - you don't have to deposit your UID/PW in a public record (well, accessible for every admin in your account).

    So, assuming that you are an admin, go to the cog (Admin), Channels, API, Settings, and click Add API token. Give your token a meaningful name, and, above all, copy and paste that API key into your password and key storage (mine is KeyPass 2) so you can retrieve it later on, as it cannot be retrieved ever after you click Save. That's part of the enhanced security I talked about above.

    From the error message, it may well be that UID/PW access to the API has not been enabled - you can check that on the API Settings page as well, right at the top.

    To use the token, go to your target definition - cog, Settings, Extensions, Targets) and edit your target: Add the string /token at the end of your user name, and paste the token into the password field.

    Select Test target in the list box besides the Submit button, then Submit your update.

    That's all.

    Hope this helps.

    Yours truly


    P.S. Is there a specific reason why you selected, against James' advice, HTTP POST instead of HTTP PUT?
    As is detailed in the API doc


    You should use PUT, not POST.


  • Nina Olding

    Hi all, thanks for sharing your feedback. I appreciate you highlighting this gap in the current product functionality. Whilst it's not something we're implementing at this moment in time, it's on our radar as a potential improvement as we're rethinking triggers and automations in the coming year. Thanks again for sharing - it's always helpful to understand what's top of mind for customers as we develop our roadmaps.

  • Michael Plaster

    I'm curious if there has been any movement on this.  I am wanting to set custom organization membership based on Azure AD fields so that managers can be setup as Lite Agents and review tickets opened by their staff. 

    For exampled we want end users in the marketing dept. to be auto assigned into the Corporate and Marketing Orgs.  This would allow VP's to see Corporate that includes several departments, but also allow limited granular views for the marketing manager.

  • Peter Hochstrasser

    Michael Plaster


    This has been open only since seven (7) years.

    Don't expect that kind of flash reaction from Zendesk.

    As you see in the note above from September 2021, Zendesk has about another 2 or 3 months before they might consider to react to this.


    Mind you, Zendesk discourages the use of triggers calling Webhooks, but in several areas, it's the only way to get some much needed functionality.

    Let's hope that they think a bit out of the box, like offering some kind of simple configuration scripts, so some arguments may be gained from the ticket, requester etc. instead of just having to create one trigger per organization you want to set etc.

    What I mean here is, some true if then else and/or case constructs so we can get things managed in one trigger instead of 1 per organization, for instance.

    Yours truly


  • Jonathan Perel

    Another important feature which Zendesk won't implement.

  • Charlie T

    How on earth has this not been implemented?!

    We have organisation-specific services and need to offer organisation-specific support.

    We use organisation-specific zendesk email addresses, and I need to set a trigger whereby:

    Received at: ACME@us.zendesk.com

    Set Organisation to ACME

    And before someone says, setting potential domains in the organisation set-up doesn't capture all as it's common for user to email on personal rather than business email addresses.

    This is such a basic requirement and it blows my mind that it doesn't exist.

  • Mo Shujaat

    I agree, I think this is a no brainer for Zendesk to implement. It should be doable and would meet our use case perfectly as well

  • Traian V

    +1 we get tickets from slack, telegram, discord private groups/channels and need the ability to set the right Org in the trigger that matches the specific channel.

  • Sebastian

    This is needed. Especially since tickets from members without organization open without having an organization but as soon as a user has one or two organizations the choice drop down appears and there is no way to not assign the ticket to an orga. Also no trigger to unassign or assign it to a standard orga, which does not even appear in the organ choice dropdown once a user is part of an orga.

  • Damien Messé

    It's absurd that it's still not possible to automatically add users in organisation using triggers.

    Basic condition...

    Let's say I want to add French customer in FR organisation based on their language.

    This is currently not possible...

    I have to create a http target or something else...

  • Sebastian

    A trigger that can have email addresses as condition could help us as well.

    But the worst thing so far is that unexpectedly it does not even work out of the box to add users to an organization based on their email domain.

    For example, for requests from a certain government organization, we know the domain name. But we don't know who will contact us. So we setup an organization that will add all end users creating a ticket with us and having this TLD to this organization.

    However, we had to learn that this does only work for authenticated zendesk accounts. Which makes this functionality useless for us. Agencies do not use contact forms, they write an email. They can't be verified if the person writing to us just wrote an email. And we can't handle such a request special when it can't be recognized because it was not added to the organization.

    That's a rather big flaw and counter intuitive. Customers should be able to decide on their own if they want to trust adding someone to an organization based on a TLD, even when unverified.

  • Forrest Doud

    Just chiming in with others that it's baffling this isn't a feature at this point when this original post is 8 years old. With all the functionality surrounding triggers already existing I truly can't understand how the the dev team couldn't implement this in a matter of hours if not days, no matter how spaghetti the code might be behind the scenes. 

  • Peter Hochstrasser

    Anyone wants to bet on how many more birthdays this request will receive in the comments?

    10 would be nice, but I think that's just too quick to really hope for.

    BTW: is the "official commenter" above still with Zendesk?
    It seems impossible to @mention him.

  • Damien Messé

    Hello, I have managed to create a webhook to automatically add a user in an organization but I can't find a way to automatically remove a user from an organization.

    Has someone already managed to do it ?



Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk