{
  "openruna_format": "flow-graph-v1",
  "title": "Entra User to Zammad User Sync",
  "slug": "entra-user-to-zammad-user-sync",
  "source_filename": "1531_Splitout_Comparedatasets_Sync_Webhook.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Get Groups from Entra",
      "name": "Get Groups from Entra",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Remove outer Array",
      "name": "Remove outer Array",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Select Entra Zammad default Group",
      "name": "Select Entra Zammad default Group",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Remove outer Array from Entra User",
      "name": "Remove outer Array from Entra User",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Zammad Univeral User Object",
      "name": "Zammad Univeral User Object",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Zammad Users",
      "name": "Get Zammad Users",
      "integration": "zammad",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Get Members of the default group",
      "name": "Get Members of the default group",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Find new Zammad Users",
      "name": "Find new Zammad Users",
      "integration": "compareDatasets",
      "kind": "action"
    },
    {
      "id": "Update Zammad User",
      "name": "Update Zammad User",
      "integration": "zammad",
      "kind": "action"
    },
    {
      "id": "Create Zammad User",
      "name": "Create Zammad User",
      "integration": "zammad",
      "kind": "action"
    },
    {
      "id": "Deactivate Zammad User",
      "name": "Deactivate Zammad User",
      "integration": "zammad",
      "kind": "action"
    },
    {
      "id": "Find removed Users",
      "name": "Find removed Users",
      "integration": "compareDatasets",
      "kind": "action"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Select only active Users and entra_obect_type=\"user\"",
      "name": "Select only active Users and entra_obect_type=\"user\"",
      "integration": "if",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Zammad Univeral User Object"
    },
    {
      "from": "Merge",
      "to": "Update Zammad User"
    },
    {
      "from": "Get Zammad Users",
      "to": "Select only active Users and entra_obect_type=\"user\""
    },
    {
      "from": "Find removed Users",
      "to": "Deactivate Zammad User"
    },
    {
      "from": "Remove outer Array",
      "to": "Select Entra Zammad default Group"
    },
    {
      "from": "Find new Zammad Users",
      "to": "Create Zammad User"
    },
    {
      "from": "Get Groups from Entra",
      "to": "Remove outer Array"
    },
    {
      "from": "Zammad Univeral User Object",
      "to": "Merge"
    },
    {
      "from": "Zammad Univeral User Object",
      "to": "Find new Zammad Users"
    },
    {
      "from": "Zammad Univeral User Object",
      "to": "Find removed Users"
    },
    {
      "from": "Get Members of the default group",
      "to": "Remove outer Array from Entra User"
    },
    {
      "from": "Select Entra Zammad default Group",
      "to": "Get Members of the default group"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Get Zammad Users"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Get Groups from Entra"
    },
    {
      "from": "Remove outer Array from Entra User",
      "to": "If"
    },
    {
      "from": "Select only active Users and entra_obect_type=\"user\"",
      "to": "Merge"
    },
    {
      "from": "Select only active Users and entra_obect_type=\"user\"",
      "to": "Find new Zammad Users"
    },
    {
      "from": "Select only active Users and entra_obect_type=\"user\"",
      "to": "Find removed Users"
    }
  ]
}