{
  "name": "Assign Zammad users to organizations based on email domain",
  "nodes": [
    {
      "id": "d62c20b0-332a-4c7d-96cb-c19fe03bf151",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        40,
        -80
      ]
    },
    {
      "id": "9c23b715-1e88-4b3a-9146-377c9e0fc980",
      "name": "Organization has domain and is shared",
      "type": "n8n-nodes-base.if",
      "position": [
        560,
        260
      ]
    },
    {
      "id": "df8c21e9-81ca-4d92-a0ab-195a3372f027",
      "name": "User has email and no organization",
      "type": "n8n-nodes-base.if",
      "position": [
        560,
        -80
      ]
    },
    {
      "id": "6f5b5cee-db76-414c-a3d6-b17f42e74a50",
      "name": "Extract Domain from User E-Mail",
      "type": "n8n-nodes-base.set",
      "position": [
        960,
        -100
      ]
    },
    {
      "id": "f40e2f91-5d31-4530-98dd-9f9973549e19",
      "name": "Zammad",
      "type": "n8n-nodes-base.zammad",
      "position": [
        320,
        -80
      ]
    },
    {
      "id": "c336af66-f837-4ebe-9cd2-ef00dd6a3cbd",
      "name": "Zammad1",
      "type": "n8n-nodes-base.zammad",
      "position": [
        340,
        260
      ]
    },
    {
      "id": "e9389dd2-069b-48b8-8f6b-090236de67f9",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1280,
        220
      ]
    },
    {
      "id": "8bd3ae8a-401a-4f8b-8e46-16943b817969",
      "name": "Update User",
      "type": "n8n-nodes-base.zammad",
      "position": [
        1540,
        220
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Update User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zammad": {
      "main": [
        [
          {
            "node": "User has email and no organization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zammad1": {
      "main": [
        [
          {
            "node": "Organization has domain and is shared",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Domain from User E-Mail": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Zammad",
            "type": "main",
            "index": 0
          },
          {
            "node": "Zammad1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User has email and no organization": {
      "main": [
        [
          {
            "node": "Extract Domain from User E-Mail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Organization has domain and is shared": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}