augustin.podvin пре 1 година
родитељ
комит
df81c65c7b
37 измењених фајлова са 8327 додато и 73 уклоњено
  1. 81 0
      all_json/CURL_COMMANDS.md
  2. 76 0
      all_json/CURL_FIXED.md
  3. 55 0
      all_json/POST_USER_TEST_EXAMPLE.md
  4. BIN
      all_json/calendars.json
  5. 134 0
      all_json/create_post_request.php
  6. BIN
      all_json/departments.json
  7. 2882 0
      all_json/departments_fixed.json
  8. 47 0
      all_json/execute_post_now.php
  9. 90 0
      all_json/execute_post_test.php
  10. 76 0
      all_json/execute_post_with_test_mode.php
  11. BIN
      all_json/legal_entities.json
  12. 222 0
      all_json/legal_entities_fixed.json
  13. BIN
      all_json/post_response.json
  14. 32 0
      all_json/post_user_request.json
  15. 39 0
      all_json/result.txt
  16. BIN
      all_json/roles.json
  17. 467 0
      all_json/roles_fixed.json
  18. 26 0
      all_json/run_post_simple.php
  19. 23 0
      all_json/run_post_test.php
  20. 21 0
      all_json/send_curl_request.ps1
  21. 20 0
      all_json/send_curl_request.sh
  22. 88 0
      all_json/send_post_request.php
  23. 14 0
      all_json/send_request_cmd.bat
  24. 64 0
      all_json/simple_post_test.php
  25. 29 0
      all_json/start_server_and_send.bat
  26. 34 0
      all_json/test_post.ps1
  27. 107 0
      all_json/test_post_direct.php
  28. 44 0
      all_json/test_post_request.php
  29. BIN
      all_json/users.json
  30. 2414 0
      all_json/users_fixed.json
  31. 38 3
      api/get_legal_entities.php
  32. 80 1
      api/request.txt
  33. 120 50
      api/user/user/GET_user.php
  34. 484 0
      api/user/user/POST_userV2.php
  35. 488 0
      api/user/user/POST_userV2.php.backup
  36. 13 6
      api/user/user/PUT_user.php
  37. 19 13
      api/user/users/GET_all_users.php

+ 81 - 0
all_json/CURL_COMMANDS.md

@@ -0,0 +1,81 @@
+# Commandes CURL pour tester POST_userV2.php
+
+## 📋 Format Linux/Mac/Bash
+
+```bash
+curl -X POST http://localhost/api/user/user/POST_userV2.php \
+  -H "Content-Type: application/json" \
+  -d @all_json/post_user_request.json
+```
+
+## 📋 Format Windows PowerShell
+
+```powershell
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" `
+  -H "Content-Type: application/json" `
+  -d "@all_json/post_user_request.json"
+```
+
+## 📋 Format Windows CMD
+
+```cmd
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" ^
+  -H "Content-Type: application/json" ^
+  -d "@all_json\post_user_request.json"
+```
+
+## 📋 Format avec chemin absolu
+
+```bash
+curl -X POST http://localhost/api/user/user/POST_userV2.php \
+  -H "Content-Type: application/json" \
+  -d @C:\Users\USER\Documents\Intersel\dev\Lucca\all_json\post_user_request.json
+```
+
+## 📋 Format avec données inline (sans fichier)
+
+```bash
+curl -X POST http://localhost/api/user/POST_userV2.php \
+  -H "Content-Type: application/json" \
+  -d '{
+    "firstName": "Jean",
+    "lastName": "Dupont",
+    "login": "test.user.1234567890@sipa-automobiles.fr",
+    "mail": "test.user.1234567890@sipa-automobiles.fr",
+    "dtContractStart": "2025-11-09T17:02:31",
+    "legalEntityId": 1,
+    "departmentId": 2,
+    "cultureID": 1036,
+    "rolePrincipalId": 4,
+    "employeeNumber": "TEST1234567890",
+    "managerId": 1919,
+    "birthDate": "1990-05-15T00:00:00",
+    "calendarId": null,
+    "habilitedRoles": [{"id": 3}],
+    "jobTitle": "Développeur Full Stack",
+    "gender": "Male"
+  }'
+```
+
+## 🚀 Exécution rapide
+
+### Windows PowerShell (depuis le dossier all_json):
+```powershell
+cd all_json
+.\send_curl_request.ps1
+```
+
+### Linux/Mac:
+```bash
+cd all_json
+chmod +x send_curl_request.sh
+./send_curl_request.sh
+```
+
+## ⚠️ Notes importantes
+
+1. Assurez-vous que votre serveur web est démarré (Apache/Nginx ou `php -S localhost:8000`)
+2. Le chemin du fichier JSON doit être correct (relatif ou absolu)
+3. Sur Windows, utilisez des guillemets doubles pour les chemins avec espaces
+4. Le `@` devant le nom de fichier indique à curl de lire le contenu du fichier
+

+ 76 - 0
all_json/CURL_FIXED.md

@@ -0,0 +1,76 @@
+# Commandes CURL corrigées
+
+## ⚠️ Problèmes identifiés
+
+1. **Serveur web non démarré** : Le port 80 n'est pas accessible
+2. **Syntaxe incorrecte** : Utilisation de backticks PowerShell (`` ` ``) dans CMD
+
+## ✅ Solutions
+
+### Option 1 : Démarrer un serveur PHP local
+
+```cmd
+REM Dans un terminal séparé, démarrer le serveur :
+cd C:\Users\USER\Documents\Intersel\dev\Lucca
+php -S localhost:8000 -t api
+```
+
+Puis dans un autre terminal :
+```cmd
+cd C:\Users\USER\Documents\Intersel\dev\Lucca\all_json
+curl -X POST "http://localhost:8000/user/user/POST_userV2.php" -H "Content-Type: application/json" -d "@post_user_request.json"
+```
+
+### Option 2 : Utiliser le script batch automatique
+
+```cmd
+cd C:\Users\USER\Documents\Intersel\dev\Lucca\all_json
+start_server_and_send.bat
+```
+
+### Option 3 : Syntaxe CMD correcte (sans serveur web)
+
+Si vous avez déjà un serveur web (Apache/Nginx) sur le port 80 :
+
+```cmd
+cd C:\Users\USER\Documents\Intersel\dev\Lucca\all_json
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" -H "Content-Type: application/json" -d "@post_user_request.json"
+```
+
+**OU sur une seule ligne :**
+
+```cmd
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" -H "Content-Type: application/json" -d "@C:\Users\USER\Documents\Intersel\dev\Lucca\all_json\post_user_request.json"
+```
+
+### Option 4 : Utiliser PowerShell (recommandé)
+
+```powershell
+cd C:\Users\USER\Documents\Intersel\dev\Lucca\all_json
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" `
+  -H "Content-Type: application/json" `
+  -d "@post_user_request.json"
+```
+
+## 📋 Différences entre CMD et PowerShell
+
+| Caractère | CMD | PowerShell |
+|-----------|-----|------------|
+| Continuation de ligne | `^` | `` ` `` |
+| Guillemets | `"` | `"` |
+| Chemin | `\` ou `/` | `\` ou `/` |
+
+## 🚀 Solution rapide (tout-en-un)
+
+Exécutez simplement :
+```cmd
+cd C:\Users\USER\Documents\Intersel\dev\Lucca\all_json
+start_server_and_send.bat
+```
+
+Ce script va :
+1. Démarrer automatiquement un serveur PHP sur le port 8000
+2. Attendre 2 secondes
+3. Envoyer la requête POST
+4. Vous permettre d'arrêter le serveur
+

+ 55 - 0
all_json/POST_USER_TEST_EXAMPLE.md

@@ -0,0 +1,55 @@
+# Exemple de Requête POST pour Créer un Utilisateur
+
+## 📋 Données de la Requête POST
+
+Le fichier `post_user_request.json` contient toutes les données nécessaires pour créer un utilisateur de test.
+
+## 🚀 Comment Exécuter la Requête POST
+
+### Option 1: Avec curl (recommandé)
+
+```bash
+curl -X POST http://localhost/api/user/user/POST_userV2.php \
+  -H "Content-Type: application/json" \
+  -d @all_json/post_user_request.json
+```
+
+### Option 2: Activer le mode test dans POST_userV2.php
+
+1. Ouvrir `api/user/user/POST_userV2.php`
+2. Modifier la ligne 71:
+   ```php
+   define('USE_TEST_DATA', true); // Au lieu de false
+   ```
+3. Remplacer les données de test (lignes 91-128) par celles de `post_user_request.json`
+4. Exécuter:
+   ```bash
+   php api/user/user/POST_userV2.php
+   ```
+
+### Option 3: Avec PowerShell
+
+```powershell
+$json = Get-Content all_json/post_user_request.json -Raw
+Invoke-RestMethod -Uri "http://localhost/api/user/user/POST_userV2.php" `
+  -Method Post `
+  -Body $json `
+  -ContentType "application/json"
+```
+
+## 📊 Données Utilisées dans la Requête
+
+- **Legal Entity**: Auto Port (ID: 1)
+- **Department**: SIPA (ID: 2)  
+- **Role Principal**: Utilisateur (ID: 4)
+- **Role Secondaire**: Manager (ID: 3)
+- **Manager**: Théo ABDESSADOK (ID: 1919)
+- **Culture**: Français France (1036)
+
+## ⚠️ Notes Importantes
+
+1. Le login est généré avec un timestamp pour éviter les conflits
+2. Assurez-vous que votre serveur web est démarré
+3. Vérifiez que l'API Lucca est accessible avec votre token
+4. Les IDs (legalEntityId, departmentId, etc.) doivent exister dans votre instance Lucca
+

BIN
all_json/calendars.json


+ 134 - 0
all_json/create_post_request.php

@@ -0,0 +1,134 @@
+<?php
+/**
+ * Script pour créer une requête POST_userV2.php complète
+ * avec toutes les données récupérées depuis les endpoints
+ */
+
+// Fonction pour charger JSON en supprimant le BOM UTF-8
+function load_json($file) {
+    $content = file_get_contents($file);
+    // Supprimer le BOM UTF-8 si présent
+    if (substr($content, 0, 3) === "\xEF\xBB\xBF") {
+        $content = substr($content, 3);
+    }
+    return json_decode($content, true);
+}
+
+// Charger tous les JSON (utiliser les versions fixes si disponibles)
+$legal_entities = load_json(__DIR__ . '/legal_entities_fixed.json') ?: load_json(__DIR__ . '/legal_entities.json');
+$departments = load_json(__DIR__ . '/departments_fixed.json') ?: load_json(__DIR__ . '/departments.json');
+$roles = load_json(__DIR__ . '/roles_fixed.json') ?: load_json(__DIR__ . '/roles.json');
+$users = load_json(__DIR__ . '/users_fixed.json') ?: load_json(__DIR__ . '/users.json');
+
+// Extraire les données
+$legal_entity = null;
+if (isset($legal_entities['legal_entities']) && is_array($legal_entities['legal_entities']) && count($legal_entities['legal_entities']) > 0) {
+    $legal_entity = $legal_entities['legal_entities'][0]; // Premier legal entity
+}
+
+$department = null;
+if (isset($departments['departments']['items']) && is_array($departments['departments']['items']) && count($departments['departments']['items']) > 0) {
+    // Chercher un département valide (éviter les départements spéciaux)
+    foreach ($departments['departments']['items'] as $dept) {
+        if (isset($dept['id']) && $dept['id'] > 0) {
+            $department = $dept;
+            break;
+        }
+    }
+}
+
+$role_principal = null;
+$role_secondary = null;
+if (isset($roles['roles']['items']) && is_array($roles['roles']['items'])) {
+    // Trouver un rôle "Utilisateur" comme principal
+    foreach ($roles['roles']['items'] as $role) {
+        if (isset($role['name']) && strpos($role['name'], 'Utilisateur') !== false && $role_principal === null) {
+            $role_principal = $role;
+        }
+        if (isset($role['name']) && strpos($role['name'], 'Manager') !== false && $role_secondary === null) {
+            $role_secondary = $role;
+        }
+    }
+    // Si pas trouvé, prendre les 2 premiers
+    if ($role_principal === null && count($roles['roles']['items']) > 0) {
+        $role_principal = $roles['roles']['items'][0];
+    }
+    if ($role_secondary === null && count($roles['roles']['items']) > 1) {
+        $role_secondary = $roles['roles']['items'][1];
+    }
+}
+
+$manager = null;
+if (isset($users['users']) && is_array($users['users']) && count($users['users']) > 0) {
+    // Prendre le premier utilisateur comme manager
+    $manager = $users['users'][0];
+}
+
+// Générer un login unique avec timestamp
+$timestamp = time();
+$login = "test.user.{$timestamp}@sipa-automobiles.fr";
+
+// Créer le body de la requête POST
+$post_data = [
+    // Champs REQUIS (non-nullable)
+    "firstName" => "Jean",
+    "lastName" => "Dupont",
+    "login" => $login,
+    "mail" => $login,
+    "dtContractStart" => date('Y-m-d\TH:i:s', strtotime('+1 day')),
+    "legalEntityId" => $legal_entity['id'] ?? 1,
+    "departmentId" => $department['id'] ?? 427,
+    "cultureID" => 1036, // Français France
+    "rolePrincipalId" => $role_principal['id'] ?? 4,
+    
+    // Champs REQUIS (nullable)
+    "employeeNumber" => "TEST" . $timestamp,
+    "managerId" => $manager['id'] ?? null,
+    "birthDate" => "1990-05-15T00:00:00",
+    "calendarId" => null, // Pas disponible via l'API
+    "habilitedRoles" => []
+];
+
+// Ajouter les rôles secondaires si disponibles
+if ($role_secondary !== null) {
+    $post_data["habilitedRoles"][] = ["id" => $role_secondary['id']];
+}
+
+// Ajouter des champs optionnels
+$post_data["jobTitle"] = "Développeur Full Stack";
+$post_data["gender"] = "Male";
+$post_data["address"] = "123 rue de la Paix, 75001 Paris";
+$post_data["personalEmail"] = "jean.dupont.perso@gmail.com";
+$post_data["personalMobile"] = "+33612345678";
+$post_data["professionalMobile"] = "+33687654321";
+$post_data["allowsElectronicPayslip"] = true;
+$post_data["bankName"] = "Banque Postale";
+$post_data["iban"] = "FR0312739000302346383836C42";
+$post_data["bic"] = "PSSTFRPPXXX";
+$post_data["nationalityId"] = "FR";
+$post_data["seniorityDate"] = $post_data["dtContractStart"];
+
+// Sauvegarder la requête POST
+$post_json = json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
+file_put_contents(__DIR__ . '/post_user_request.json', $post_json);
+
+// Afficher un résumé
+echo "✅ Requête POST créée avec succès!\n\n";
+echo "📄 Fichier créé: all_json/post_user_request.json\n\n";
+echo "📋 Données utilisées:\n";
+echo "  - Legal Entity: " . ($legal_entity['name'] ?? 'N/A') . " (ID: " . ($legal_entity['id'] ?? 'N/A') . ")\n";
+echo "  - Department: " . ($department['name'] ?? 'N/A') . " (ID: " . ($department['id'] ?? 'N/A') . ")\n";
+echo "  - Role Principal: " . ($role_principal['name'] ?? 'N/A') . " (ID: " . ($role_principal['id'] ?? 'N/A') . ")\n";
+if ($role_secondary !== null) {
+    echo "  - Role Secondaire: " . $role_secondary['name'] . " (ID: " . $role_secondary['id'] . ")\n";
+}
+if ($manager !== null) {
+    echo "  - Manager: " . $manager['name'] . " (ID: " . $manager['id'] . ")\n";
+}
+echo "  - Login: " . $login . "\n";
+echo "\n";
+echo "🚀 Pour tester la requête:\n";
+echo "curl -X POST http://localhost/api/user/user/POST_userV2.php \\\n";
+echo "  -H \"Content-Type: application/json\" \\\n";
+echo "  -d @" . __DIR__ . "/post_user_request.json\n";
+

BIN
all_json/departments.json


+ 2882 - 0
all_json/departments_fixed.json

@@ -0,0 +1,2882 @@
+{
+    "success": true,
+    "departments": {
+        "items": [
+            {
+                "id": 2,
+                "name": "SIPA",
+                "code": "SIPA"
+            },
+            {
+                "id": 3,
+                "name": "Sipa Automobiles",
+                "code": "Sipa_automobiles"
+            },
+            {
+                "id": 61,
+                "name": "AUTO 33",
+                "code": "AUTO_33"
+            },
+            {
+                "id": 62,
+                "name": "Commerce VN A33",
+                "code": "Commerce_VN_A33"
+            },
+            {
+                "id": 63,
+                "name": "Secr├®tariat VN A33",
+                "code": "Secr├®tariat_VN_A33"
+            },
+            {
+                "id": 64,
+                "name": "Vente VN A33",
+                "code": "Vente_VN_A33"
+            },
+            {
+                "id": 65,
+                "name": "Commerce VO A33",
+                "code": "Commerce_VO_A33"
+            },
+            {
+                "id": 66,
+                "name": "Secr├®tariat VO A33",
+                "code": "Secr├®tariat_VO_A33"
+            },
+            {
+                "id": 67,
+                "name": "Vente VO A33",
+                "code": "Vente_VO_A33"
+            },
+            {
+                "id": 68,
+                "name": "Commerce VU A33",
+                "code": "Commerce_VU_A33"
+            },
+            {
+                "id": 69,
+                "name": "Secr├®tariat VU A33",
+                "code": "Secr├®tariat_VU_A33"
+            },
+            {
+                "id": 70,
+                "name": "Vente VU A33",
+                "code": "Vente_VU_A33"
+            },
+            {
+                "id": 71,
+                "name": "Comptabilit├® A33",
+                "code": "Comptabilit├®_A33"
+            },
+            {
+                "id": 72,
+                "name": "Direction A33",
+                "code": "Direction_A33"
+            },
+            {
+                "id": 74,
+                "name": "APV M├®canique A33",
+                "code": "APV_M├®canique_A33"
+            },
+            {
+                "id": 75,
+                "name": "Atelier A33",
+                "code": "Atelier_A33"
+            },
+            {
+                "id": 76,
+                "name": "Secr├®tariat APV A33",
+                "code": "Secr├®tariat_APV_A33"
+            },
+            {
+                "id": 77,
+                "name": "Qualit├® A33",
+                "code": "Qualit├®_A33"
+            },
+            {
+                "id": 78,
+                "name": "Pr├®paration Esth├®tique A33",
+                "code": "Pr├®paration_Esth├®tique_A33"
+            },
+            {
+                "id": 79,
+                "name": "PRA A33",
+                "code": "PRA_A33"
+            },
+            {
+                "id": 80,
+                "name": "AUTO NORD",
+                "code": "AUTO_NORD"
+            },
+            {
+                "id": 81,
+                "name": "Commerce VN AN",
+                "code": "Commerce_VN_AN"
+            },
+            {
+                "id": 82,
+                "name": "Secr├®tariat VN AN",
+                "code": "Secr├®tariat_VN_AN"
+            },
+            {
+                "id": 83,
+                "name": "Vente VN AN",
+                "code": "Vente_VN_AN"
+            },
+            {
+                "id": 84,
+                "name": "Commerce VO AN",
+                "code": "Commerce_VO_AN"
+            },
+            {
+                "id": 85,
+                "name": "Secr├®tariat VO AN",
+                "code": "Secr├®tariat_VO_AN"
+            },
+            {
+                "id": 86,
+                "name": "Vente VO AN",
+                "code": "Vente_VO_AN"
+            },
+            {
+                "id": 87,
+                "name": "Commerce VU AN",
+                "code": "Commerce_VU_AN"
+            },
+            {
+                "id": 88,
+                "name": "Secr├®tariat VU AN",
+                "code": "Secr├®tariat_VU_AN"
+            },
+            {
+                "id": 89,
+                "name": "Vente VU AN",
+                "code": "Vente_VU_AN"
+            },
+            {
+                "id": 90,
+                "name": "Comptabilit├® AN",
+                "code": "Comptabilit├®_AN"
+            },
+            {
+                "id": 91,
+                "name": "Direction AN",
+                "code": "Direction_AN"
+            },
+            {
+                "id": 92,
+                "name": "Marketing AN",
+                "code": "Marketing_AN"
+            },
+            {
+                "id": 93,
+                "name": "APV M├®canique AN",
+                "code": "APV_M├®canique_AN"
+            },
+            {
+                "id": 94,
+                "name": "Atelier AN",
+                "code": "Atelier_AN"
+            },
+            {
+                "id": 95,
+                "name": "Secr├®tariat APV AN",
+                "code": "Secr├®tariat_APV_AN"
+            },
+            {
+                "id": 96,
+                "name": "Qualit├® AN",
+                "code": "Qualit├®_AN"
+            },
+            {
+                "id": 97,
+                "name": "Pr├®paration Esth├®tique AN",
+                "code": "Pr├®paration_Esth├®tique_AN"
+            },
+            {
+                "id": 98,
+                "name": "PRA AN",
+                "code": "PRA_AN"
+            },
+            {
+                "id": 99,
+                "name": "AUTO OUEST",
+                "code": "AUTO_OUEST"
+            },
+            {
+                "id": 100,
+                "name": "Commerce VN AO",
+                "code": "Commerce_VN_AO"
+            },
+            {
+                "id": 101,
+                "name": "Secr├®tariat VN AO",
+                "code": "Secr├®tariat_VN_AO"
+            },
+            {
+                "id": 102,
+                "name": "Vente VN AO",
+                "code": "Vente_VN_AO"
+            },
+            {
+                "id": 103,
+                "name": "Commerce VO AO",
+                "code": "Commerce_VO_AO"
+            },
+            {
+                "id": 104,
+                "name": "Secr├®tariat VO AO",
+                "code": "Secr├®tariat_VO_AO"
+            },
+            {
+                "id": 105,
+                "name": "Vente VO AO",
+                "code": "Vente_VO_AO"
+            },
+            {
+                "id": 106,
+                "name": "Commerce VU AO",
+                "code": "Commerce_VU_AO"
+            },
+            {
+                "id": 107,
+                "name": "Secr├®tariat VU AO",
+                "code": "Secr├®tariat_VU_AO"
+            },
+            {
+                "id": 108,
+                "name": "Vente VU AO",
+                "code": "Vente_VU_AO"
+            },
+            {
+                "id": 109,
+                "name": "Comptabilit├® AO",
+                "code": "Comptabilit├®_AO"
+            },
+            {
+                "id": 110,
+                "name": "Direction AO",
+                "code": "Direction_AO"
+            },
+            {
+                "id": 111,
+                "name": "Marketing AO",
+                "code": "Marketing_AO"
+            },
+            {
+                "id": 112,
+                "name": "APV M├®canique AO",
+                "code": "APV_M├®canique_AO"
+            },
+            {
+                "id": 113,
+                "name": "Atelier AO",
+                "code": "Atelier_AO"
+            },
+            {
+                "id": 114,
+                "name": "Secr├®tariat APV AO",
+                "code": "Secr├®tariat_APV_AO"
+            },
+            {
+                "id": 115,
+                "name": "Qualit├® AO",
+                "code": "Qualit├®_AO"
+            },
+            {
+                "id": 116,
+                "name": "Pr├®paration Esth├®tique AO",
+                "code": "Pr├®paration_Esth├®tique_AO"
+            },
+            {
+                "id": 117,
+                "name": "PRA AO",
+                "code": "PRA_AO"
+            },
+            {
+                "id": 118,
+                "name": "AUTO PORT",
+                "code": "AUTO_PORT"
+            },
+            {
+                "id": 119,
+                "name": "Commerce VN AP",
+                "code": "Commerce_VN_AP"
+            },
+            {
+                "id": 120,
+                "name": "Secr├®tariat VN AP",
+                "code": "Secr├®tariat_VN_AP"
+            },
+            {
+                "id": 121,
+                "name": "Vente VN AP",
+                "code": "Vente_VN_AP"
+            },
+            {
+                "id": 122,
+                "name": "Commerce VO AP",
+                "code": "Commerce_VO_AP"
+            },
+            {
+                "id": 123,
+                "name": "Secr├®tariat VO AP",
+                "code": "Secr├®tariat_VO_AP"
+            },
+            {
+                "id": 124,
+                "name": "Vente VO AP",
+                "code": "Vente_VO_AP"
+            },
+            {
+                "id": 125,
+                "name": "Commerce VU AP",
+                "code": "Commerce_VU_AP"
+            },
+            {
+                "id": 126,
+                "name": "Secr├®tariat VU AP",
+                "code": "Secr├®tariat_VU_AP"
+            },
+            {
+                "id": 127,
+                "name": "Vente VU AP",
+                "code": "Vente_VU_AP"
+            },
+            {
+                "id": 128,
+                "name": "Comptabilit├® AP",
+                "code": "Comptabilit├®_AP"
+            },
+            {
+                "id": 129,
+                "name": "Direction AP",
+                "code": "Direction_AP"
+            },
+            {
+                "id": 130,
+                "name": "Marketing AP",
+                "code": "Marketing_AP"
+            },
+            {
+                "id": 131,
+                "name": "APV M├®canique AP",
+                "code": "APV_M├®canique_AP"
+            },
+            {
+                "id": 132,
+                "name": "Atelier AP",
+                "code": "Atelier_AP"
+            },
+            {
+                "id": 133,
+                "name": "Secr├®tariat APV AP",
+                "code": "Secr├®tariat_APV_AP"
+            },
+            {
+                "id": 134,
+                "name": "Qualit├® AP",
+                "code": "Qualit├®_AP"
+            },
+            {
+                "id": 135,
+                "name": "Pr├®paration Esth├®tique AP",
+                "code": "Pr├®paration_Esth├®tique_AP"
+            },
+            {
+                "id": 136,
+                "name": "PRA AP",
+                "code": "PRA_AP"
+            },
+            {
+                "id": 156,
+                "name": "BORDEAUX MOTORS",
+                "code": "BORDEAUX_MOTORS"
+            },
+            {
+                "id": 157,
+                "name": "Commerce VN BM",
+                "code": "Commerce_VN_BM"
+            },
+            {
+                "id": 158,
+                "name": "Secr├®tariat VN BM",
+                "code": "Secr├®tariat_VN_BM"
+            },
+            {
+                "id": 159,
+                "name": "Vente VN BM",
+                "code": "Vente_VN_BM"
+            },
+            {
+                "id": 160,
+                "name": "Commerce VO BM",
+                "code": "Commerce_VO_BM"
+            },
+            {
+                "id": 161,
+                "name": "Secr├®tariat VO BM",
+                "code": "Secr├®tariat_VO_BM"
+            },
+            {
+                "id": 162,
+                "name": "Vente VO BM",
+                "code": "Vente_VO_BM"
+            },
+            {
+                "id": 163,
+                "name": "Commerce VU BM",
+                "code": "Commerce_VU_BM"
+            },
+            {
+                "id": 164,
+                "name": "Secr├®tariat VU BM",
+                "code": "Secr├®tariat_VU_BM"
+            },
+            {
+                "id": 165,
+                "name": "Vente VU BM",
+                "code": "Vente_VU_BM"
+            },
+            {
+                "id": 166,
+                "name": "Comptabilit├® BM",
+                "code": "Comptabilit├®_BM"
+            },
+            {
+                "id": 167,
+                "name": "Direction BM",
+                "code": "Direction_BM"
+            },
+            {
+                "id": 168,
+                "name": "Marketing BM",
+                "code": "Marketing_BM"
+            },
+            {
+                "id": 169,
+                "name": "APV M├®canique BM",
+                "code": "APV_M├®canique_BM"
+            },
+            {
+                "id": 170,
+                "name": "Atelier BM",
+                "code": "Atelier_BM"
+            },
+            {
+                "id": 171,
+                "name": "Secr├®tariat APV BM",
+                "code": "Secr├®tariat_APV_BM"
+            },
+            {
+                "id": 172,
+                "name": "Qualit├® BM",
+                "code": "Qualit├®_BM"
+            },
+            {
+                "id": 173,
+                "name": "Pr├®paration Esth├®tique BM",
+                "code": "Pr├®paration_Esth├®tique_BM"
+            },
+            {
+                "id": 174,
+                "name": "PRA BM",
+                "code": "PRA_BM"
+            },
+            {
+                "id": 175,
+                "name": "BORDEAUX MOTORS LA TESTE",
+                "code": "BORDEAUX_MOTORS_LA_TESTE"
+            },
+            {
+                "id": 176,
+                "name": "Commerce VN BM2",
+                "code": "Commerce_VN_BM2"
+            },
+            {
+                "id": 177,
+                "name": "Secr├®tariat VN BM2",
+                "code": "Secr├®tariat_VN_BM2"
+            },
+            {
+                "id": 178,
+                "name": "Vente VN BM2",
+                "code": "Vente_VN_BM2"
+            },
+            {
+                "id": 179,
+                "name": "Commerce VO BM2",
+                "code": "Commerce_VO_BM2"
+            },
+            {
+                "id": 180,
+                "name": "Secr├®tariat VO BM2",
+                "code": "Secr├®tariat_VO_BM2"
+            },
+            {
+                "id": 181,
+                "name": "Vente VO BM2",
+                "code": "Vente_VO_BM2"
+            },
+            {
+                "id": 182,
+                "name": "Commerce VU BM2",
+                "code": "Commerce_VU_BM2"
+            },
+            {
+                "id": 183,
+                "name": "Secr├®tariat VU BM2",
+                "code": "Secr├®tariat_VU_BM2"
+            },
+            {
+                "id": 184,
+                "name": "Vente VU BM2",
+                "code": "Vente_VU_BM2"
+            },
+            {
+                "id": 188,
+                "name": "APV M├®canique BM2",
+                "code": "APV_M├®canique_BM2"
+            },
+            {
+                "id": 189,
+                "name": "Atelier BM2",
+                "code": "Atelier_BM2"
+            },
+            {
+                "id": 190,
+                "name": "Secr├®tariat APV BM2",
+                "code": "Secr├®tariat_APV_BM2"
+            },
+            {
+                "id": 191,
+                "name": "Qualit├® BM2",
+                "code": "Qualit├®_BM2"
+            },
+            {
+                "id": 192,
+                "name": "Pr├®paration Esth├®tique BM2",
+                "code": "Pr├®paration_Esth├®tique_BM2"
+            },
+            {
+                "id": 193,
+                "name": "PRA BM2",
+                "code": "PRA_BM2"
+            },
+            {
+                "id": 194,
+                "name": "BORDEAUX SUD AUTOMOBILES",
+                "code": "BORDEAUX_SUD_AUTOMOBILES"
+            },
+            {
+                "id": 195,
+                "name": "Commerce VN BSA",
+                "code": "Commerce_VN_BSA"
+            },
+            {
+                "id": 196,
+                "name": "Secr├®tariat VN\/VO BSA",
+                "code": "Secr├®tariat_VN\/VO_BSA"
+            },
+            {
+                "id": 197,
+                "name": "Vente VN BSA",
+                "code": "Vente_VN_BSA"
+            },
+            {
+                "id": 198,
+                "name": "Commerce VO BSA",
+                "code": "Commerce_VO_BSA"
+            },
+            {
+                "id": 200,
+                "name": "Vente VO BSA",
+                "code": "Vente_VO_BSA"
+            },
+            {
+                "id": 201,
+                "name": "Commerce VU BSA",
+                "code": "Commerce_VU_BSA"
+            },
+            {
+                "id": 203,
+                "name": "Vente VU BSA",
+                "code": "Vente_VU_BSA"
+            },
+            {
+                "id": 204,
+                "name": "Comptabilit├® BSA",
+                "code": "Comptabilit├®_BSA"
+            },
+            {
+                "id": 205,
+                "name": "Direction BSA",
+                "code": "Direction_BSA"
+            },
+            {
+                "id": 206,
+                "name": "Marketing BSA",
+                "code": "Marketing_BSA"
+            },
+            {
+                "id": 207,
+                "name": "APV M├®canique BSA",
+                "code": "APV_M├®canique_BSA"
+            },
+            {
+                "id": 208,
+                "name": "Atelier BSA",
+                "code": "Atelier_BSA"
+            },
+            {
+                "id": 209,
+                "name": "Secr├®tariat APV BSA",
+                "code": "Secr├®tariat_APV_BSA"
+            },
+            {
+                "id": 210,
+                "name": "Qualit├® BSA",
+                "code": "Qualit├®_BSA"
+            },
+            {
+                "id": 211,
+                "name": "Carrosserie BSA",
+                "code": "Carrosserie_BSA"
+            },
+            {
+                "id": 212,
+                "name": "Pr├®paration Esth├®tique BSA",
+                "code": "Pr├®paration_Esth├®tique_BSA"
+            },
+            {
+                "id": 213,
+                "name": "PRA BSA",
+                "code": "PRA_BSA"
+            },
+            {
+                "id": 214,
+                "name": "BOREAL",
+                "code": "BOREAL"
+            },
+            {
+                "id": 215,
+                "name": "Commerce VN BO",
+                "code": "Commerce_VN_BO"
+            },
+            {
+                "id": 216,
+                "name": "Secr├®tariat VN BO",
+                "code": "Secr├®tariat_VN_BO"
+            },
+            {
+                "id": 217,
+                "name": "Vente VN BO",
+                "code": "Vente_VN_BO"
+            },
+            {
+                "id": 218,
+                "name": "Commerce VO BO",
+                "code": "Commerce_VO_BO"
+            },
+            {
+                "id": 219,
+                "name": "Secr├®tariat VO BO",
+                "code": "Secr├®tariat_VO_BO"
+            },
+            {
+                "id": 220,
+                "name": "Vente VO BO",
+                "code": "Vente_VO_BO"
+            },
+            {
+                "id": 221,
+                "name": "Commerce VU BO",
+                "code": "Commerce_VU_BO"
+            },
+            {
+                "id": 222,
+                "name": "Secr├®tariat VU BO",
+                "code": "Secr├®tariat_VU_BO"
+            },
+            {
+                "id": 223,
+                "name": "Vente VU BO",
+                "code": "Vente_VU_BO"
+            },
+            {
+                "id": 224,
+                "name": "Comptabilit├® BO",
+                "code": "Comptabilit├®_BO"
+            },
+            {
+                "id": 225,
+                "name": "Direction BO",
+                "code": "Direction_BO"
+            },
+            {
+                "id": 226,
+                "name": "Marketing BO",
+                "code": "Marketing_BO"
+            },
+            {
+                "id": 227,
+                "name": "Atelier M├®canique BO",
+                "code": "Atelier_M├®canique_BO"
+            },
+            {
+                "id": 228,
+                "name": "Atelier BO",
+                "code": "Atelier_BO"
+            },
+            {
+                "id": 229,
+                "name": "Secr├®tariat APV BO",
+                "code": "Secr├®tariat_APV_BO"
+            },
+            {
+                "id": 230,
+                "name": "Qualit├® BO",
+                "code": "Qualit├®_BO"
+            },
+            {
+                "id": 231,
+                "name": "Pr├®paration Esth├®tique BO",
+                "code": "Pr├®paration_Esth├®tique_BO"
+            },
+            {
+                "id": 232,
+                "name": "PRA BO",
+                "code": "PRA_BO"
+            },
+            {
+                "id": 233,
+                "name": "BOREAL NORD",
+                "code": "BOREAL_NORD"
+            },
+            {
+                "id": 234,
+                "name": "Commerce VN BOND",
+                "code": "Commerce_VN_BOND"
+            },
+            {
+                "id": 235,
+                "name": "Secr├®tariat VN BOND",
+                "code": "Secr├®tariat_VN_BOND"
+            },
+            {
+                "id": 236,
+                "name": "Vente VN BOND",
+                "code": "Vente_VN_BOND"
+            },
+            {
+                "id": 237,
+                "name": "Commerce VO BOND",
+                "code": "Commerce_VO_BOND"
+            },
+            {
+                "id": 238,
+                "name": "Secr├®tariat VO BOND",
+                "code": "Secr├®tariat_VO_BOND"
+            },
+            {
+                "id": 239,
+                "name": "Vente VO BOND",
+                "code": "Vente_VO_BOND"
+            },
+            {
+                "id": 240,
+                "name": "Commerce VU BOND",
+                "code": "Commerce_VU_BOND"
+            },
+            {
+                "id": 241,
+                "name": "Secr├®tariat VU BOND",
+                "code": "Secr├®tariat_VU_BOND"
+            },
+            {
+                "id": 242,
+                "name": "Vente VU BOND",
+                "code": "Vente_VU_BOND"
+            },
+            {
+                "id": 243,
+                "name": "Comptabilit├® BOND",
+                "code": "Comptabilit├®_BOND"
+            },
+            {
+                "id": 244,
+                "name": "Direction BOND",
+                "code": "Direction_BOND"
+            },
+            {
+                "id": 245,
+                "name": "Marketing BOND",
+                "code": "Marketing_BOND"
+            },
+            {
+                "id": 246,
+                "name": "APV M├®canique BOND",
+                "code": "APV_M├®canique_BOND"
+            },
+            {
+                "id": 247,
+                "name": "Atelier BOND",
+                "code": "Atelier_BOND"
+            },
+            {
+                "id": 248,
+                "name": "Secr├®tariat APV BOND",
+                "code": "Secr├®tariat_APV_BOND"
+            },
+            {
+                "id": 249,
+                "name": "Qualit├® BOND",
+                "code": "Qualit├®_BOND"
+            },
+            {
+                "id": 250,
+                "name": "Pr├®paration Esth├®tique BOND",
+                "code": "Pr├®paration_Esth├®tique_BOND"
+            },
+            {
+                "id": 251,
+                "name": "PRA BOND",
+                "code": "PRA_BOND"
+            },
+            {
+                "id": 252,
+                "name": "CAP NORD AUTOMOBILES",
+                "code": "CAP_NORD_AUTOMOBILES"
+            },
+            {
+                "id": 253,
+                "name": "Commerce VN CN",
+                "code": "Commerce_VN_CN"
+            },
+            {
+                "id": 254,
+                "name": "Secr├®tariat VN CN",
+                "code": "Secr├®tariat_VN_CN"
+            },
+            {
+                "id": 255,
+                "name": "Vente VN CN",
+                "code": "Vente_VN_CN"
+            },
+            {
+                "id": 256,
+                "name": "Commerce VO CN",
+                "code": "Commerce_VO_CN"
+            },
+            {
+                "id": 257,
+                "name": "Secr├®tariat VO CN",
+                "code": "Secr├®tariat_VO_CN"
+            },
+            {
+                "id": 258,
+                "name": "Vente VO CN",
+                "code": "Vente_VO_CN"
+            },
+            {
+                "id": 259,
+                "name": "Commerce VU CN",
+                "code": "Commerce_VU_CN"
+            },
+            {
+                "id": 260,
+                "name": "Secr├®tariat VU CN",
+                "code": "Secr├®tariat_VU_CN"
+            },
+            {
+                "id": 261,
+                "name": "Vente VU CN",
+                "code": "Vente_VU_CN"
+            },
+            {
+                "id": 262,
+                "name": "Comptabilit├® CN",
+                "code": "Comptabilit├®_CN"
+            },
+            {
+                "id": 263,
+                "name": "Direction CN",
+                "code": "Direction_CN"
+            },
+            {
+                "id": 264,
+                "name": "Marketing CN",
+                "code": "Marketing_CN"
+            },
+            {
+                "id": 265,
+                "name": "APV M├®canique CN",
+                "code": "APV_M├®canique_CN"
+            },
+            {
+                "id": 266,
+                "name": "Atelier CN",
+                "code": "Atelier_CN"
+            },
+            {
+                "id": 267,
+                "name": "Secr├®tariat APV CN",
+                "code": "Secr├®tariat_APV_CN"
+            },
+            {
+                "id": 268,
+                "name": "Qualit├® CN",
+                "code": "Qualit├®_CN"
+            },
+            {
+                "id": 269,
+                "name": "Pr├®paration Esth├®tique CN",
+                "code": "Pr├®paration_Esth├®tique_CN"
+            },
+            {
+                "id": 270,
+                "name": "PRA CN",
+                "code": "PRA_CN"
+            },
+            {
+                "id": 271,
+                "name": "CAP NORD RIVE DROITE",
+                "code": "CAP_NORD_RIVE_DROITE"
+            },
+            {
+                "id": 272,
+                "name": "Commerce VN CNRD",
+                "code": "Commerce_VN_CNRD"
+            },
+            {
+                "id": 273,
+                "name": "Secr├®tariat VN CNRD",
+                "code": "Secr├®tariat_VN_CNRD"
+            },
+            {
+                "id": 274,
+                "name": "Vente VN CNRD",
+                "code": "Vente_VN_CNRD"
+            },
+            {
+                "id": 275,
+                "name": "Commerce VO CNRD",
+                "code": "Commerce_VO_CNRD"
+            },
+            {
+                "id": 276,
+                "name": "Secr├®tariat VO CNRD",
+                "code": "Secr├®tariat_VO_CNRD"
+            },
+            {
+                "id": 277,
+                "name": "Vente VO CNRD",
+                "code": "Vente_VO_CNRD"
+            },
+            {
+                "id": 278,
+                "name": "Commerce VU CNRD",
+                "code": "Commerce_VU_CNRD"
+            },
+            {
+                "id": 279,
+                "name": "Secr├®tariat VU CNRD",
+                "code": "Secr├®tariat_VU_CNRD"
+            },
+            {
+                "id": 280,
+                "name": "Vente VU CNRD",
+                "code": "Vente_VU_CNRD"
+            },
+            {
+                "id": 282,
+                "name": "Direction CNRD",
+                "code": "Direction_CNRD"
+            },
+            {
+                "id": 284,
+                "name": "APV M├®canique CNRD",
+                "code": "APV_M├®canique_CNRD"
+            },
+            {
+                "id": 285,
+                "name": "Atelier CNRD",
+                "code": "Atelier_CNRD"
+            },
+            {
+                "id": 286,
+                "name": "Secr├®tariat APV CNRD",
+                "code": "Secr├®tariat_APV_CNRD"
+            },
+            {
+                "id": 287,
+                "name": "Qualit├® CNRD",
+                "code": "Qualit├®_CNRD"
+            },
+            {
+                "id": 288,
+                "name": "Pr├®paration Esth├®tique CNRD",
+                "code": "Pr├®paration_Esth├®tique_CNRD"
+            },
+            {
+                "id": 289,
+                "name": "PRA CNRD",
+                "code": "PRA_CNRD"
+            },
+            {
+                "id": 290,
+                "name": "CAP NORD BEARN",
+                "code": "CAP_NORD_BEARN"
+            },
+            {
+                "id": 291,
+                "name": "Commerce VN CNB",
+                "code": "Commerce_VN_CNB"
+            },
+            {
+                "id": 292,
+                "name": "Secr├®tariat VN CNB",
+                "code": "Secr├®tariat_VN_CNB"
+            },
+            {
+                "id": 293,
+                "name": "Vente VN CNB",
+                "code": "Vente_VN_CNB"
+            },
+            {
+                "id": 294,
+                "name": "Commerce VO CNB",
+                "code": "Commerce_VO_CNB"
+            },
+            {
+                "id": 295,
+                "name": "Secr├®tariat VO CNB",
+                "code": "Secr├®tariat_VO_CNB"
+            },
+            {
+                "id": 296,
+                "name": "Vente VO CNB",
+                "code": "Vente_VO_CNB"
+            },
+            {
+                "id": 297,
+                "name": "Commerce VU CNB",
+                "code": "Commerce_VU_CNB"
+            },
+            {
+                "id": 298,
+                "name": "Secr├®tariat VU CNB",
+                "code": "Secr├®tariat_VU_CNB"
+            },
+            {
+                "id": 299,
+                "name": "Vente VU CNB",
+                "code": "Vente_VU_CNB"
+            },
+            {
+                "id": 300,
+                "name": "Comptabilit├® CNB",
+                "code": "Comptabilit├®_CNB"
+            },
+            {
+                "id": 301,
+                "name": "Direction CNB",
+                "code": "Direction_CNB"
+            },
+            {
+                "id": 302,
+                "name": "Marketing CNB",
+                "code": "Marketing_CNB"
+            },
+            {
+                "id": 303,
+                "name": "APV M├®canique CNB",
+                "code": "APV_M├®canique_CNB"
+            },
+            {
+                "id": 304,
+                "name": "Atelier CNB",
+                "code": "Atelier_CNB"
+            },
+            {
+                "id": 305,
+                "name": "Secr├®tariat APV CNB",
+                "code": "Secr├®tariat_APV_CNB"
+            },
+            {
+                "id": 306,
+                "name": "Qualit├® CNB",
+                "code": "Qualit├®_CNB"
+            },
+            {
+                "id": 307,
+                "name": "Pr├®paration Esth├®tique CNB",
+                "code": "Pr├®paration_Esth├®tique_CNB"
+            },
+            {
+                "id": 308,
+                "name": "PRA CNB",
+                "code": "PRA_CNB"
+            },
+            {
+                "id": 309,
+                "name": "CAP OUEST",
+                "code": "CAP_OUEST"
+            },
+            {
+                "id": 310,
+                "name": "Commerce VN CO",
+                "code": "Commerce_VN_CO"
+            },
+            {
+                "id": 311,
+                "name": "Secr├®tariat VN CO",
+                "code": "Secr├®tariat_VN_CO"
+            },
+            {
+                "id": 312,
+                "name": "Vente VN CO",
+                "code": "Vente_VN_CO"
+            },
+            {
+                "id": 313,
+                "name": "Commerce VO CO",
+                "code": "Commerce_VO_CO"
+            },
+            {
+                "id": 314,
+                "name": "Secr├®tariat VO CO",
+                "code": "Secr├®tariat_VO_CO"
+            },
+            {
+                "id": 315,
+                "name": "Vente VO CO",
+                "code": "Vente_VO_CO"
+            },
+            {
+                "id": 316,
+                "name": "Commerce VU CO",
+                "code": "Commerce_VU_CO"
+            },
+            {
+                "id": 317,
+                "name": "Secr├®tariat VU CO",
+                "code": "Secr├®tariat_VU_CO"
+            },
+            {
+                "id": 318,
+                "name": "Vente VU CO",
+                "code": "Vente_VU_CO"
+            },
+            {
+                "id": 319,
+                "name": "Comptabilit├® CO",
+                "code": "Comptabilit├®_CO"
+            },
+            {
+                "id": 320,
+                "name": "Direction CO",
+                "code": "Direction_CO"
+            },
+            {
+                "id": 321,
+                "name": "Marketing CO",
+                "code": "Marketing_CO"
+            },
+            {
+                "id": 322,
+                "name": "APV M├®canique CO",
+                "code": "APV_M├®canique_CO"
+            },
+            {
+                "id": 323,
+                "name": "Atelier CO",
+                "code": "Atelier_CO"
+            },
+            {
+                "id": 324,
+                "name": "Secr├®tariat APV CO",
+                "code": "Secr├®tariat_APV_CO"
+            },
+            {
+                "id": 325,
+                "name": "Qualit├® CO",
+                "code": "Qualit├®_CO"
+            },
+            {
+                "id": 326,
+                "name": "Pr├®paration Esth├®tique CO",
+                "code": "Pr├®paration_Esth├®tique_CO"
+            },
+            {
+                "id": 327,
+                "name": "PRA CO",
+                "code": "PRA_CO"
+            },
+            {
+                "id": 328,
+                "name": "ETABLISSEMENT LAVILLAUROY LESCAR",
+                "code": "ETABLISSEMENT_LAVILLAUROY_LESCAR"
+            },
+            {
+                "id": 329,
+                "name": "Commerce VN ETLL",
+                "code": "Commerce_VN_ETLL"
+            },
+            {
+                "id": 330,
+                "name": "Secr├®tariat VN ETLL",
+                "code": "Secr├®tariat_VN_ETLL"
+            },
+            {
+                "id": 331,
+                "name": "Vente VN ETLL",
+                "code": "Vente_VN_ETLL"
+            },
+            {
+                "id": 332,
+                "name": "Commerce VO ETLL",
+                "code": "Commerce_VO_ETLL"
+            },
+            {
+                "id": 333,
+                "name": "Secr├®tariat VO ETLL",
+                "code": "Secr├®tariat_VO_ETLL"
+            },
+            {
+                "id": 334,
+                "name": "Vente VO ETLL",
+                "code": "Vente_VO_ETLL"
+            },
+            {
+                "id": 335,
+                "name": "Commerce VU ETLL",
+                "code": "Commerce_VU_ETLL"
+            },
+            {
+                "id": 336,
+                "name": "Secr├®tariat VU ETLL",
+                "code": "Secr├®tariat_VU_ETLL"
+            },
+            {
+                "id": 337,
+                "name": "Vente VU ETLL",
+                "code": "Vente_VU_ETLL"
+            },
+            {
+                "id": 338,
+                "name": "Comptabilit├® ETLL",
+                "code": "Comptabilit├®_ETLL"
+            },
+            {
+                "id": 339,
+                "name": "Direction ETLL",
+                "code": "Direction_ETLL"
+            },
+            {
+                "id": 340,
+                "name": "Marketing ETLL",
+                "code": "Marketing_ETLL"
+            },
+            {
+                "id": 341,
+                "name": "APV M├®canique ETLL",
+                "code": "APV_M├®canique_ETLL"
+            },
+            {
+                "id": 342,
+                "name": "Atelier ETLL",
+                "code": "Atelier_ETLL"
+            },
+            {
+                "id": 343,
+                "name": "Secr├®tariat APV ETLL",
+                "code": "Secr├®tariat_APV_ETLL"
+            },
+            {
+                "id": 344,
+                "name": "Qualit├® ETLL",
+                "code": "Qualit├®_ETLL"
+            },
+            {
+                "id": 345,
+                "name": "Carrosserie ETLL",
+                "code": "Carrosserie_ETLL"
+            },
+            {
+                "id": 346,
+                "name": "Pr├®paration Esth├®tique ETLL",
+                "code": "Pr├®paration_Esth├®tique_ETLL"
+            },
+            {
+                "id": 347,
+                "name": "PRA ETLL",
+                "code": "PRA_ETLL"
+            },
+            {
+                "id": 348,
+                "name": "ETABLISSEMENT LAVILLAUROY SKODA",
+                "code": "ETABLISSEMENT_LAVILLAUROY_SKODA"
+            },
+            {
+                "id": 349,
+                "name": "Commerce VN ETLS",
+                "code": "Commerce_VN_ETLS"
+            },
+            {
+                "id": 350,
+                "name": "Secr├®tariat VN ETLS",
+                "code": "Secr├®tariat_VN_ETLS"
+            },
+            {
+                "id": 351,
+                "name": "Vente VN ETLS",
+                "code": "Vente_VN_ETLS"
+            },
+            {
+                "id": 352,
+                "name": "Commerce VO ETLS",
+                "code": "Commerce_VO_ETLS"
+            },
+            {
+                "id": 353,
+                "name": "Secr├®tariat VO ETLS",
+                "code": "Secr├®tariat_VO_ETLS"
+            },
+            {
+                "id": 354,
+                "name": "Vente VO ETLS",
+                "code": "Vente_VO_ETLS"
+            },
+            {
+                "id": 355,
+                "name": "Commerce VU ETLS",
+                "code": "Commerce_VU_ETLS"
+            },
+            {
+                "id": 356,
+                "name": "Secr├®tariat VU ETLS",
+                "code": "Secr├®tariat_VU_ETLS"
+            },
+            {
+                "id": 357,
+                "name": "Vente VU ETLS",
+                "code": "Vente_VU_ETLS"
+            },
+            {
+                "id": 358,
+                "name": "Comptabilit├® ETLS",
+                "code": "Comptabilit├®_ETLS"
+            },
+            {
+                "id": 361,
+                "name": "APV M├®canique ETLS",
+                "code": "APV_M├®canique_ETLS"
+            },
+            {
+                "id": 362,
+                "name": "Atelier ETLS",
+                "code": "Atelier_ETLS"
+            },
+            {
+                "id": 363,
+                "name": "Secr├®tariat APV ETLS",
+                "code": "Secr├®tariat_APV_ETLS"
+            },
+            {
+                "id": 364,
+                "name": "Qualit├® ETLS",
+                "code": "Qualit├®_ETLS"
+            },
+            {
+                "id": 365,
+                "name": "Pr├®paration Esth├®tique ETLS",
+                "code": "Pr├®paration_Esth├®tique_ETLS"
+            },
+            {
+                "id": 366,
+                "name": "PRA ETLS",
+                "code": "PRA_ETLS"
+            },
+            {
+                "id": 367,
+                "name": "ETABLISSEMENT LAVILLAUROY TARBES",
+                "code": "ETABLISSEMENT_LAVILLAUROY_TARBES"
+            },
+            {
+                "id": 368,
+                "name": "Commerce VN ETLT",
+                "code": "Commerce_VN_ETLT"
+            },
+            {
+                "id": 369,
+                "name": "Secr├®tariat VN ETLT",
+                "code": "Secr├®tariat_VN_ETLT"
+            },
+            {
+                "id": 370,
+                "name": "Vente VN ETLT",
+                "code": "Vente_VN_ETLT"
+            },
+            {
+                "id": 371,
+                "name": "Commerce VO ETLT",
+                "code": "Commerce_VO_ETLT"
+            },
+            {
+                "id": 372,
+                "name": "Secr├®tariat VO ETLT",
+                "code": "Secr├®tariat_VO_ETLT"
+            },
+            {
+                "id": 373,
+                "name": "Vente VO ETLT",
+                "code": "Vente_VO_ETLT"
+            },
+            {
+                "id": 374,
+                "name": "Commerce VU ETLT",
+                "code": "Commerce_VU_ETLT"
+            },
+            {
+                "id": 375,
+                "name": "Secr├®tariat VU ETLT",
+                "code": "Secr├®tariat_VU_ETLT"
+            },
+            {
+                "id": 376,
+                "name": "Vente VU ETLT",
+                "code": "Vente_VU_ETLT"
+            },
+            {
+                "id": 378,
+                "name": "Direction ETLT",
+                "code": "Direction_ETLT"
+            },
+            {
+                "id": 380,
+                "name": "APV M├®canique ETLT",
+                "code": "APV_M├®canique_ETLT"
+            },
+            {
+                "id": 381,
+                "name": "Atelier ETLT",
+                "code": "Atelier_ETLT"
+            },
+            {
+                "id": 382,
+                "name": "Secr├®tariat APV ETLT",
+                "code": "Secr├®tariat_APV_ETLT"
+            },
+            {
+                "id": 383,
+                "name": "Qualit├® ETLT",
+                "code": "Qualit├®_ETLT"
+            },
+            {
+                "id": 384,
+                "name": "Pr├®paration Esth├®tique ETLT",
+                "code": "Pr├®paration_Esth├®tique_ETLT"
+            },
+            {
+                "id": 385,
+                "name": "PRA ETLT",
+                "code": "PRA_ETLT"
+            },
+            {
+                "id": 424,
+                "name": "MONT DE MARSAN AUTOMOBILES",
+                "code": "MONT_DE_MARSAN_AUTOMOBILES"
+            },
+            {
+                "id": 425,
+                "name": "Commerce VN MMA",
+                "code": "Commerce_VN_MMA"
+            },
+            {
+                "id": 426,
+                "name": "Secr├®tariat VN MMA",
+                "code": "Secr├®tariat_VN_MMA"
+            },
+            {
+                "id": 427,
+                "name": "Vente VN MMA",
+                "code": "Vente_VN_MMA"
+            },
+            {
+                "id": 428,
+                "name": "Commerce VO MMA",
+                "code": "Commerce_VO_MMA"
+            },
+            {
+                "id": 429,
+                "name": "Secr├®tariat VO MMA",
+                "code": "Secr├®tariat_VO_MMA"
+            },
+            {
+                "id": 430,
+                "name": "Vente VO MMA",
+                "code": "Vente_VO_MMA"
+            },
+            {
+                "id": 431,
+                "name": "Commerce VU MMA",
+                "code": "Commerce_VU_MMA"
+            },
+            {
+                "id": 432,
+                "name": "Secr├®tariat VU MMA",
+                "code": "Secr├®tariat_VU_MMA"
+            },
+            {
+                "id": 433,
+                "name": "Vente VU MMA",
+                "code": "Vente_VU_MMA"
+            },
+            {
+                "id": 434,
+                "name": "Comptabilit├® MMA",
+                "code": "Comptabilit├®_MMA"
+            },
+            {
+                "id": 435,
+                "name": "Direction MMA",
+                "code": "Direction_MMA"
+            },
+            {
+                "id": 436,
+                "name": "Marketing MMA",
+                "code": "Marketing_MMA"
+            },
+            {
+                "id": 437,
+                "name": "APV M├®canique MMA",
+                "code": "APV_M├®canique_MMA"
+            },
+            {
+                "id": 438,
+                "name": "Atelier MMA",
+                "code": "Atelier_MMA"
+            },
+            {
+                "id": 439,
+                "name": "Secr├®tariat APV MMA",
+                "code": "Secr├®tariat_APV_MMA"
+            },
+            {
+                "id": 440,
+                "name": "Qualit├® MMA",
+                "code": "Qualit├®_MMA"
+            },
+            {
+                "id": 441,
+                "name": "Pr├®paration Esth├®tique MMA",
+                "code": "Pr├®paration_Esth├®tique_MMA"
+            },
+            {
+                "id": 442,
+                "name": "Carrosserie MMA",
+                "code": "Carrosserie_MMA"
+            },
+            {
+                "id": 443,
+                "name": "PRA MMA",
+                "code": "PRA_MMA"
+            },
+            {
+                "id": 444,
+                "name": "PAU AUTOMOBILES",
+                "code": "PAU_AUTOMOBILES"
+            },
+            {
+                "id": 445,
+                "name": "Commerce VN PAU",
+                "code": "Commerce_VN_PAU"
+            },
+            {
+                "id": 446,
+                "name": "Secr├®tariat VN PAU",
+                "code": "Secr├®tariat_VN_PAU"
+            },
+            {
+                "id": 447,
+                "name": "Vente VN PAU",
+                "code": "Vente_VN_PAU"
+            },
+            {
+                "id": 448,
+                "name": "Commerce VO PAU",
+                "code": "Commerce_VO_PAU"
+            },
+            {
+                "id": 449,
+                "name": "Secr├®tariat VO PAU",
+                "code": "Secr├®tariat_VO_PAU"
+            },
+            {
+                "id": 450,
+                "name": "Vente VO PAU",
+                "code": "Vente_VO_PAU"
+            },
+            {
+                "id": 451,
+                "name": "Commerce VU PAU",
+                "code": "Commerce_VU_PAU"
+            },
+            {
+                "id": 452,
+                "name": "Secr├®tariat VU PAU",
+                "code": "Secr├®tariat_VU_PAU"
+            },
+            {
+                "id": 453,
+                "name": "Vente VU PAU",
+                "code": "Vente_VU_PAU"
+            },
+            {
+                "id": 454,
+                "name": "Comptabilit├® PAU",
+                "code": "Comptabilit├®_PAU"
+            },
+            {
+                "id": 455,
+                "name": "Direction PAU",
+                "code": "Direction_PAU"
+            },
+            {
+                "id": 456,
+                "name": "Marketing PAU",
+                "code": "Marketing_PAU"
+            },
+            {
+                "id": 457,
+                "name": "APV M├®canique PAU",
+                "code": "APV_M├®canique_PAU"
+            },
+            {
+                "id": 458,
+                "name": "Atelier PAU",
+                "code": "Atelier_PAU"
+            },
+            {
+                "id": 459,
+                "name": "Secr├®tariat APV PAU",
+                "code": "Secr├®tariat_APV_PAU"
+            },
+            {
+                "id": 460,
+                "name": "Qualit├® PAU",
+                "code": "Qualit├®_PAU"
+            },
+            {
+                "id": 461,
+                "name": "Pr├®paration Esth├®tique PAU",
+                "code": "Pr├®paration_Esth├®tique_PAU"
+            },
+            {
+                "id": 462,
+                "name": "Carrosserie PAU",
+                "code": "Carrosserie_PAU"
+            },
+            {
+                "id": 463,
+                "name": "PRA PAU",
+                "code": "PRA_PAU"
+            },
+            {
+                "id": 464,
+                "name": "SOMEDA",
+                "code": "SOMEDA"
+            },
+            {
+                "id": 465,
+                "name": "Commerce VN SOMEDA",
+                "code": "Commerce_VN_SOMEDA"
+            },
+            {
+                "id": 466,
+                "name": "Secr├®tariat VN SOMEDA",
+                "code": "Secr├®tariat_VN_SOMEDA"
+            },
+            {
+                "id": 467,
+                "name": "Vente VN SOMEDA",
+                "code": "Vente_VN_SOMEDA"
+            },
+            {
+                "id": 468,
+                "name": "Commerce VO SOMEDA",
+                "code": "Commerce_VO_SOMEDA"
+            },
+            {
+                "id": 469,
+                "name": "Secr├®tariat VO SOMEDA",
+                "code": "Secr├®tariat_VO_SOMEDA"
+            },
+            {
+                "id": 470,
+                "name": "Vente VO SOMEDA",
+                "code": "Vente_VO_SOMEDA"
+            },
+            {
+                "id": 471,
+                "name": "Commerce VU SOMEDA",
+                "code": "Commerce_VU_SOMEDA"
+            },
+            {
+                "id": 472,
+                "name": "Secr├®tariat VU SOMEDA",
+                "code": "Secr├®tariat_VU_SOMEDA"
+            },
+            {
+                "id": 473,
+                "name": "Vente VU SOMEDA",
+                "code": "Vente_VU_SOMEDA"
+            },
+            {
+                "id": 474,
+                "name": "Comptabilit├® SOMEDA",
+                "code": "Comptabilit├®_SOMEDA"
+            },
+            {
+                "id": 475,
+                "name": "Direction SOMEDA",
+                "code": "Direction_SOMEDA"
+            },
+            {
+                "id": 476,
+                "name": "Marketing SOMEDA",
+                "code": "Marketing_SOMEDA"
+            },
+            {
+                "id": 477,
+                "name": "APV M├®canique SOMEDA",
+                "code": "APV_M├®canique_SOMEDA"
+            },
+            {
+                "id": 478,
+                "name": "Atelier SOMEDA",
+                "code": "Atelier_SOMEDA"
+            },
+            {
+                "id": 479,
+                "name": "Secr├®tariat APV SOMEDA",
+                "code": "Secr├®tariat_APV_SOMEDA"
+            },
+            {
+                "id": 480,
+                "name": "Qualit├® SOMEDA",
+                "code": "Qualit├®_SOMEDA"
+            },
+            {
+                "id": 481,
+                "name": "Pr├®paration Esth├®tique SOMEDA",
+                "code": "Pr├®paration_Esth├®tique_SOMEDA"
+            },
+            {
+                "id": 482,
+                "name": "Carrosserie SOMEDA",
+                "code": "Carrosserie_SOMEDA"
+            },
+            {
+                "id": 483,
+                "name": "PRA SOMEDA",
+                "code": "PRA_SOMEDA"
+            },
+            {
+                "id": 484,
+                "name": "SUD GARONNE AUTOMOBILES",
+                "code": "SUD_GARONNE_AUTOMOBILES"
+            },
+            {
+                "id": 485,
+                "name": "Commerce VN SGA",
+                "code": "Commerce_VN_SGA"
+            },
+            {
+                "id": 486,
+                "name": "Secr├®tariat VN SGA",
+                "code": "Secr├®tariat_VN_SGA"
+            },
+            {
+                "id": 487,
+                "name": "Vente VN SGA",
+                "code": "Vente_VN_SGA"
+            },
+            {
+                "id": 488,
+                "name": "Commerce VO SGA",
+                "code": "Commerce_VO_SGA"
+            },
+            {
+                "id": 489,
+                "name": "Secr├®tariat VO SGA",
+                "code": "Secr├®tariat_VO_SGA"
+            },
+            {
+                "id": 490,
+                "name": "Vente VO SGA",
+                "code": "Vente_VO_SGA"
+            },
+            {
+                "id": 491,
+                "name": "Commerce VU SGA",
+                "code": "Commerce_VU_SGA"
+            },
+            {
+                "id": 492,
+                "name": "Secr├®tariat VU SGA",
+                "code": "Secr├®tariat_VU_SGA"
+            },
+            {
+                "id": 493,
+                "name": "Vente VU SGA",
+                "code": "Vente_VU_SGA"
+            },
+            {
+                "id": 494,
+                "name": "Comptabilit├® SGA",
+                "code": "Comptabilit├®_SGA"
+            },
+            {
+                "id": 495,
+                "name": "Direction SGA",
+                "code": "Direction_SGA"
+            },
+            {
+                "id": 496,
+                "name": "Marketing SGA",
+                "code": "Marketing_SGA"
+            },
+            {
+                "id": 497,
+                "name": "APV M├®canique SGA",
+                "code": "APV_M├®canique_SGA"
+            },
+            {
+                "id": 498,
+                "name": "Atelier SGA",
+                "code": "Atelier_SGA"
+            },
+            {
+                "id": 499,
+                "name": "Secr├®tariat APV SGA",
+                "code": "Secr├®tariat_APV_SGA"
+            },
+            {
+                "id": 500,
+                "name": "Qualit├® SGA",
+                "code": "Qualit├®_SGA"
+            },
+            {
+                "id": 501,
+                "name": "Pr├®paration Esth├®tique SGA",
+                "code": "Pr├®paration_Esth├®tique_SGA"
+            },
+            {
+                "id": 502,
+                "name": "PRA SGA",
+                "code": "PRA_SGA"
+            },
+            {
+                "id": 504,
+                "name": "VPN Autos",
+                "code": "VPN_Autos"
+            },
+            {
+                "id": 505,
+                "name": "VPN FRANCE",
+                "code": "VPN_FRANCE"
+            },
+            {
+                "id": 512,
+                "name": "VPN BORDEAUX Lormont",
+                "code": "VPN_BORDEAUX_Lormont"
+            },
+            {
+                "id": 513,
+                "name": "Commerce VO VPNL",
+                "code": "Commerce_VO_VPNL"
+            },
+            {
+                "id": 514,
+                "name": "Secr├®tariat VO VPNL",
+                "code": "Secr├®tariat_VO_VPNL"
+            },
+            {
+                "id": 515,
+                "name": "Vente VO VPNL",
+                "code": "Vente_VO_VPNL"
+            },
+            {
+                "id": 516,
+                "name": "Comptabilit├® VPNL",
+                "code": "Comptabilit├®_VPNL"
+            },
+            {
+                "id": 517,
+                "name": "APV M├®canique VPNL",
+                "code": "APV_M├®canique_VPNL"
+            },
+            {
+                "id": 518,
+                "name": "Atelier VPNL",
+                "code": "Atelier_VPNL"
+            },
+            {
+                "id": 519,
+                "name": "Secr├®tariat APV VPNL",
+                "code": "Secr├®tariat_APV_VPNL"
+            },
+            {
+                "id": 520,
+                "name": "Magasin VPNL",
+                "code": "Magasin_VPNL"
+            },
+            {
+                "id": 521,
+                "name": "VPN BORDEAUX M├®rignac",
+                "code": "VPN_BORDEAUX_M├®rignac"
+            },
+            {
+                "id": 522,
+                "name": "Commerce VO VPNM",
+                "code": "Commerce_VO_VPNM"
+            },
+            {
+                "id": 523,
+                "name": "Secr├®tariat VO VPNM",
+                "code": "Secr├®tariat_VO_VPNM"
+            },
+            {
+                "id": 524,
+                "name": "Vente VO VPNM",
+                "code": "Vente_VO_VPNM"
+            },
+            {
+                "id": 526,
+                "name": "APV M├®canique VPNM",
+                "code": "APV_M├®canique_VPNM"
+            },
+            {
+                "id": 527,
+                "name": "Atelier VPNM",
+                "code": "Atelier_VPNM"
+            },
+            {
+                "id": 528,
+                "name": "Secr├®tariat APV VPNM",
+                "code": "Secr├®tariat_APV_VPNM"
+            },
+            {
+                "id": 529,
+                "name": "Magasin VPNM",
+                "code": "Magasin_VPNM"
+            },
+            {
+                "id": 530,
+                "name": "SODECO Group",
+                "code": "SODECO_Group"
+            },
+            {
+                "id": 531,
+                "name": "Sodeco",
+                "code": "Sodeco"
+            },
+            {
+                "id": 544,
+                "name": "Labo MD France",
+                "code": "Labo MD France"
+            },
+            {
+                "id": 545,
+                "name": "MGS",
+                "code": "MGS"
+            },
+            {
+                "id": 554,
+                "name": "MDS",
+                "code": "MDS"
+            },
+            {
+                "id": 562,
+                "name": "Vente VN FCA A33",
+                "code": "VENTE_VN_FCA_A33"
+            },
+            {
+                "id": 563,
+                "name": "Vente VN HYUNDAI A33",
+                "code": "VENTE_VN_HYUNDAI_A33"
+            },
+            {
+                "id": 564,
+                "name": "Vente VN FCA AN",
+                "code": "VENTE_VN_FCA_AN"
+            },
+            {
+                "id": 565,
+                "name": "Vente VN OPEL AN",
+                "code": "VENTE_VN_OPEL_AN"
+            },
+            {
+                "id": 566,
+                "name": "Vente VN HYUNDAI AN",
+                "code": "VENTE_VN_HYUNDAI_AN"
+            },
+            {
+                "id": 568,
+                "name": "Vente VN HYUNDAI AP",
+                "code": "VENTE_VN_HYUNDAI_AP"
+            },
+            {
+                "id": 569,
+                "name": "Vente VN FCA BM",
+                "code": "VENTE_VN_FCA_BM"
+            },
+            {
+                "id": 570,
+                "name": "Vente VN MAZDA BM",
+                "code": "VENTE_VN_MAZDA_BM"
+            },
+            {
+                "id": 571,
+                "name": "Vente VN FCA BSA",
+                "code": "VENTE_VN_FCA_BSA"
+            },
+            {
+                "id": 572,
+                "name": "Vente VN HYUNDAI BSA",
+                "code": "VENTE_VN_HYUNDAI_BSA"
+            },
+            {
+                "id": 573,
+                "name": "Vente VN VW ETLL",
+                "code": "VENTE_VN_VW_ETLL"
+            },
+            {
+                "id": 574,
+                "name": "Vente VN AUDI ETLL",
+                "code": "VENTE_VN_AUDI_ETLL"
+            },
+            {
+                "id": 575,
+                "name": "Vente VN FCA SGA",
+                "code": "VENTE_VN_FCA_SGA"
+            },
+            {
+                "id": 576,
+                "name": "Vente VN HYUNDAI SGA",
+                "code": "VENTE_VN_HYUNDAI_SGA"
+            },
+            {
+                "id": 577,
+                "name": "Location ETL",
+                "code": "LOCATION_ETL"
+            },
+            {
+                "id": 578,
+                "name": "Marketing VPNL",
+                "code": "MARKETING_VPNL"
+            },
+            {
+                "id": 579,
+                "name": "Activit├®s Automobiles",
+                "code": "AUTOMOBILES"
+            },
+            {
+                "id": 586,
+                "name": "VRP",
+                "code": "VRP"
+            },
+            {
+                "id": 587,
+                "name": "Vente VN OPEL SGA",
+                "code": "VENTE_VN_OPEL_SGA"
+            },
+            {
+                "id": 596,
+                "name": "Labo Lux",
+                "code": "LABO_LUX"
+            },
+            {
+                "id": 597,
+                "name": "Location Pau",
+                "code": "LOCATION_PAU"
+            },
+            {
+                "id": 598,
+                "name": "Location AN",
+                "code": "LOCATION_AN"
+            },
+            {
+                "id": 599,
+                "name": "CAP NORD BASCO LANDES - Anglet",
+                "code": "CAP_NORD_BASCO_LANDES_-_ANGLET"
+            },
+            {
+                "id": 600,
+                "name": "CAP NORD BASCO LANDES - Saint-Avit",
+                "code": "CAP_NORD_BASCO_LANDES_-_SAINT-AVIT"
+            },
+            {
+                "id": 601,
+                "name": "Commerce VN CNBL Anglet",
+                "code": "COMMERCE_VN_CNBL_Anglet"
+            },
+            {
+                "id": 602,
+                "name": "Vente VN CNBL Anglet",
+                "code": "VENTE_VN_CNBL_ANGLET"
+            },
+            {
+                "id": 603,
+                "name": "Secr├®tariat VN\/VO CNBL Anglet",
+                "code": "SECRETARIAT_VN_CNBL_ANGLET"
+            },
+            {
+                "id": 604,
+                "name": "Commerce VO CNBL Anglet",
+                "code": "COMMERCE_VO_CNBL_ANGLET"
+            },
+            {
+                "id": 605,
+                "name": "Vente VO CNBL Anglet",
+                "code": "VENTE_VO_CNBL_ANGLET"
+            },
+            {
+                "id": 606,
+                "name": "Secr├®tariat VO CNBL Anglet",
+                "code": "SECRETARIAT_VO_CNBL_ANGLET"
+            },
+            {
+                "id": 607,
+                "name": "Comptabilit├® CNBL Anglet",
+                "code": "COMPTABILITE_CNBL_ANGLET"
+            },
+            {
+                "id": 608,
+                "name": "Direction CNBL Anglet",
+                "code": "DIRECTION_CNBL_ANGLET"
+            },
+            {
+                "id": 610,
+                "name": "APV M├®canique CNBL Anglet",
+                "code": "APV_MECANIQUE_CNBL_ANGLET"
+            },
+            {
+                "id": 611,
+                "name": "Atelier CNBL Anglet",
+                "code": "ATELIER_CNBL_ANGLET"
+            },
+            {
+                "id": 612,
+                "name": "Secr├®tariat APV CNBL Anglet",
+                "code": "SECRETARIAT_APV_CNBL_ANGLET"
+            },
+            {
+                "id": 613,
+                "name": "Qualit├® CNBL Anglet",
+                "code": "QUALITE_CNBL_ANGLET"
+            },
+            {
+                "id": 614,
+                "name": "Pr├®paration Esth├®tique CNBL Anglet",
+                "code": "PREPARATION_ESTHETIQUE_CNBL_ANGLET"
+            },
+            {
+                "id": 615,
+                "name": "PRA CNBL Anglet",
+                "code": "PRA_CNBL_ANGLET"
+            },
+            {
+                "id": 616,
+                "name": "Commerce VN CNBL Saint-Avit",
+                "code": "COMMERCE_VN_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 617,
+                "name": "Vente VN CNBL Saint-Avit",
+                "code": "VENTE_VN_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 618,
+                "name": "Secr├®tariat VN\/VO CNBL Saint-Avit",
+                "code": "SECRETARIAT_VN_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 619,
+                "name": "Commerce VO CNBL Saint-Avit",
+                "code": "COMMERCE_VO_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 620,
+                "name": "Vente VO CNBL Saint-Avit",
+                "code": "VENTE_VO_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 621,
+                "name": "Secr├®tariat VO CNBL Saint-Avit",
+                "code": "SECRETARIAT_VO_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 624,
+                "name": "APV M├®canique CNBL Saint-Avit",
+                "code": "APV_MECANIQUE_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 625,
+                "name": "Atelier CNBL Saint-Avit",
+                "code": "ATELIER_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 626,
+                "name": "Secr├®tariat APV CNBL Saint-Avit",
+                "code": "SECRETARIAT_APV_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 627,
+                "name": "Pr├®paration Esth├®tique CNBL Saint-Avit",
+                "code": "PREPARATION_ESTHETIQUE_CNBL_SAINT-AVIT"
+            },
+            {
+                "id": 628,
+                "name": "ATOCHIM",
+                "code": "ATOCHIM"
+            },
+            {
+                "id": 634,
+                "name": "PAU AUTOMOBILES NAVARRE",
+                "code": "PAU_AUTOMOBILES_NAVARRE"
+            },
+            {
+                "id": 635,
+                "name": "PAU AUTOMOBILES EST",
+                "code": "PAU_AUTOMOBILES_EST"
+            },
+            {
+                "id": 636,
+                "name": "Commerce VN PAU NAVARRE",
+                "code": "COMMERCE_VN_PAU_NAVARRE"
+            },
+            {
+                "id": 637,
+                "name": "Secr├®tariat VN PAU NAVARRE",
+                "code": "SECRÉTARIAT_VN_PAU_NAVARRE"
+            },
+            {
+                "id": 638,
+                "name": "Vente VN PAU NAVARRE",
+                "code": "VENTE_VN_PAU_NAVARRE"
+            },
+            {
+                "id": 639,
+                "name": "Commerce VO PAU NAVARRE",
+                "code": "COMMERCE_VO_PAU_NAVARRE"
+            },
+            {
+                "id": 640,
+                "name": "Secr├®tariat VO PAU NAVARRE",
+                "code": "SECRÉTARIAT_VO_PAU_NAVARRE"
+            },
+            {
+                "id": 641,
+                "name": "Commerce VU PAU NAVARRE",
+                "code": "COMMERCE_VU_PAU_NAVARRE"
+            },
+            {
+                "id": 642,
+                "name": "Secr├®tariat VU PAU NAVARRE",
+                "code": "SECRÉTARIAT_VU_PAU_NAVARRE"
+            },
+            {
+                "id": 643,
+                "name": "Vente VU PAU NAVARRE",
+                "code": "VENTE_VU_PAU_NAVARRE"
+            },
+            {
+                "id": 644,
+                "name": "Comptabilit├® PAU NAVARRE",
+                "code": "COMPTABILITÉ_PAU_NAVARRE"
+            },
+            {
+                "id": 645,
+                "name": "Direction PAU NAVARRE",
+                "code": "DIRECTION_PAU_NAVARRE"
+            },
+            {
+                "id": 646,
+                "name": "Vente VO PAU NAVARRE",
+                "code": "VENTE_VO_PAU_NAVARRE"
+            },
+            {
+                "id": 647,
+                "name": "Marketing PAU NAVARRE",
+                "code": "MARKETING_PAU_NAVARRE"
+            },
+            {
+                "id": 648,
+                "name": "APV M├®canique PAU NAVARRE",
+                "code": "APV_MÉCANIQUE_PAU_NAVARRE"
+            },
+            {
+                "id": 649,
+                "name": "Atelier PAU NAVARRE",
+                "code": "ATELIER_PAU_NAVARRE"
+            },
+            {
+                "id": 650,
+                "name": "Secr├®tariat APV PAU NAVARRE",
+                "code": "SECRÉTARIAT_APV_PAU_NAVARRE"
+            },
+            {
+                "id": 651,
+                "name": "APV M├®canique PAU EST",
+                "code": "APV_MECANIQUE_PAU_EST"
+            },
+            {
+                "id": 652,
+                "name": "Qualit├® PAU NAVARRE",
+                "code": "QUALITÉ_PAU_NAVARRE"
+            },
+            {
+                "id": 653,
+                "name": "Pr├®paration Esth├®tique PAU NAVARRE",
+                "code": "PRÉPARATION_ESTHÉTIQUE_PAU_NAVARRE"
+            },
+            {
+                "id": 654,
+                "name": "PRA PAU NAVARRE",
+                "code": "PRA_PAU_NAVARRE"
+            },
+            {
+                "id": 655,
+                "name": "Location PAU NAVARRE",
+                "code": "LOCATION_PAU_NAVARRE"
+            },
+            {
+                "id": 656,
+                "name": "Atelier PAU EST",
+                "code": "ATELIER_PAU_EST"
+            },
+            {
+                "id": 657,
+                "name": "Commerce VN PAU EST",
+                "code": "COMMERCE_VN_PAU_EST"
+            },
+            {
+                "id": 658,
+                "name": "Vente VN PAU EST",
+                "code": "VENTE_VN_PAU_EST"
+            },
+            {
+                "id": 659,
+                "name": "Commerce Silence PAU NAVARRE",
+                "code": "COMMERCE_SILENCE_PAU_NAVARRE"
+            },
+            {
+                "id": 660,
+                "name": "APV Sipa Auto",
+                "code": "APV_SIPA_AUTO"
+            },
+            {
+                "id": 661,
+                "name": "Comptabilit├® Sipa Auto",
+                "code": "COMPTABILITÉ_SIPA_AUTO"
+            },
+            {
+                "id": 668,
+                "name": "S.O.MO",
+                "code": "S.O.MO"
+            },
+            {
+                "id": 669,
+                "name": "APV M├®canique S.O.MO",
+                "code": "APV_MÉCANIQUE_S.O.MO"
+            },
+            {
+                "id": 670,
+                "name": "Atelier S.O.MO",
+                "code": "ATELIER_S.O.MO"
+            },
+            {
+                "id": 671,
+                "name": "Secr├®tariat APV S.O.MO",
+                "code": "SECRÉTARIAT_APV_S.O.MO"
+            },
+            {
+                "id": 672,
+                "name": "Commerce VN S.O.MO",
+                "code": "COMMERCE_VN_S.O.MO"
+            },
+            {
+                "id": 673,
+                "name": "Secr├®tariat VN S.O.MO",
+                "code": "SECRÉTARIAT_VN_S.O.MO"
+            },
+            {
+                "id": 674,
+                "name": "Vente VN S.O.MO",
+                "code": "VENTE_VN_S.O.MO"
+            },
+            {
+                "id": 675,
+                "name": "Commerce VO S.O.MO",
+                "code": "COMMERCE_VO_S.O.MO"
+            },
+            {
+                "id": 676,
+                "name": "Secr├®tariat VO S.O.MO",
+                "code": "SECRÉTARIAT_VO_S.O.MO"
+            },
+            {
+                "id": 677,
+                "name": "Vente VO S.O.MO",
+                "code": "VENTE_VO_S.O.MO"
+            },
+            {
+                "id": 678,
+                "name": "Direction S.O.MO",
+                "code": "DIRECTION_S.O.MO"
+            },
+            {
+                "id": 679,
+                "name": "Comptabilit├® S.O.MO",
+                "code": "COMPTABILITÉ_S.O.MO"
+            },
+            {
+                "id": 680,
+                "name": "Marketing S.O.MO",
+                "code": "MARKETING_S.O.MO"
+            },
+            {
+                "id": 681,
+                "name": "SODEX",
+                "code": "SODEX"
+            },
+            {
+                "id": 682,
+                "name": "PRA SODEX",
+                "code": "PRA_SODEX"
+            },
+            {
+                "id": 683,
+                "name": "Comptabilit├® SODEX",
+                "code": "COMPTABILITÉ_SODEX"
+            },
+            {
+                "id": 684,
+                "name": "APV M├®canique SODEX",
+                "code": "APV_MÉCANIQUE_SODEX"
+            },
+            {
+                "id": 685,
+                "name": "Atelier SODEX",
+                "code": "ATELIER_SODEX"
+            },
+            {
+                "id": 686,
+                "name": "Direction SODEX",
+                "code": "DIRECTION_SODEX"
+            },
+            {
+                "id": 687,
+                "name": "Direction VPNL",
+                "code": "DIRECTION_VPNL"
+            },
+            {
+                "id": 688,
+                "name": "Pr├®paration Esth├®tique SODEX",
+                "code": "PRÉPARATION_ESTHÉTIQUE_SODEX"
+            },
+            {
+                "id": 690,
+                "name": "Commerce VN\/VO SODEX",
+                "code": "COMMERCE_VN\/VO_SODEX"
+            },
+            {
+                "id": 691,
+                "name": "Vente VN\/VO SODEX",
+                "code": "VENTE_VN\/VO_SODEX"
+            },
+            {
+                "id": 692,
+                "name": "Secr├®tariat VN SODEX",
+                "code": "SECRÉTARIAT_VN_SODEX"
+            },
+            {
+                "id": 693,
+                "name": "Secr├®tariat VO SODEX",
+                "code": "SECRÉTARIAT_VO_SODEX"
+            },
+            {
+                "id": 694,
+                "name": "MILANO",
+                "code": "MILANO"
+            },
+            {
+                "id": 695,
+                "name": "MILANO MONT DE MARSAN",
+                "code": "MILANO_MONT_DE_MARSAN"
+            },
+            {
+                "id": 696,
+                "name": "Direction MILANO",
+                "code": "DIRECTION_MILANO"
+            },
+            {
+                "id": 697,
+                "name": "APV MILANO",
+                "code": "APV_MILANO"
+            },
+            {
+                "id": 698,
+                "name": "Atelier MILANO",
+                "code": "ATELIER_MILANO"
+            },
+            {
+                "id": 699,
+                "name": "Comptabilit├® MILANO",
+                "code": "COMPTABILITÉ_MILANO"
+            },
+            {
+                "id": 700,
+                "name": "Commerce VN\/VO MILANO",
+                "code": "COMMERCE_VN\/VO_MILANO"
+            },
+            {
+                "id": 701,
+                "name": "Vente VN\/VO MILANO",
+                "code": "VENTE_VN\/VO_MILANO"
+            },
+            {
+                "id": 702,
+                "name": "Secr├®tariat VN\/VO MILANO",
+                "code": "SECRÉTARIAT_VN\/VO_MILANO"
+            },
+            {
+                "id": 703,
+                "name": "Pr├®paration Esth├®tique MILANO",
+                "code": "PRÉPARATION_ESTHÉTIQUE_MILANO"
+            },
+            {
+                "id": 704,
+                "name": "PRA MILANO",
+                "code": "PRA_MILANO"
+            },
+            {
+                "id": 705,
+                "name": "Secr├®tariat APV MILANO",
+                "code": "SECRÉTARIAT_APV_MILANO"
+            },
+            {
+                "id": 706,
+                "name": "Commerce VN\/VO MILANO MDM",
+                "code": "COMMERCE_VN\/VO_MILANO_MDM"
+            },
+            {
+                "id": 707,
+                "name": "Vente VN\/VO MILANO MDM",
+                "code": "VENTE_VN\/VO_MILANO_MDM"
+            },
+            {
+                "id": 708,
+                "name": "Secr├®tariat VN\/VO MILANO MDM",
+                "code": "SECRÉTARIAT_VN\/VO_MILANO_MDM"
+            },
+            {
+                "id": 709,
+                "name": "Pr├®paration Esth├®tique MILANO MDM",
+                "code": "PRÉPARATION_ESTHÉTIQUE_MILANO_MDM"
+            },
+            {
+                "id": 710,
+                "name": "APV MILANO MDM",
+                "code": "APV_MILANO_MDM"
+            },
+            {
+                "id": 711,
+                "name": "Atelier MILANO MDM",
+                "code": "ATELIER_MILANO_MDM"
+            },
+            {
+                "id": 712,
+                "name": "Secr├®tariat APV MILANO MDM",
+                "code": "SECRÉTARIAT_APV_MILANO_MDM"
+            },
+            {
+                "id": 713,
+                "name": "PRA MILANO MDM",
+                "code": "PRA_MILANO_MDM"
+            },
+            {
+                "id": 714,
+                "name": "Marketing MILANO",
+                "code": "MARKETING_MILANO"
+            },
+            {
+                "id": 717,
+                "name": "BORDEAUX SUD AUTOMOBILES LIBOURNE",
+                "code": "BORDEAUX_SUD_AUTOMOBILES_LIBOURNE"
+            },
+            {
+                "id": 718,
+                "name": "Commerce VN BSAL",
+                "code": "COMMERCE_VN_BSAL"
+            },
+            {
+                "id": 719,
+                "name": "Secr├®tariat VN BSAL",
+                "code": "SECRÉTARIAT_VN_BSAL"
+            },
+            {
+                "id": 720,
+                "name": "Vente VN BSAL",
+                "code": "VENTE_VN_BSAL"
+            },
+            {
+                "id": 721,
+                "name": "Commerce VO BSAL",
+                "code": "COMMERCE_VO_BSAL"
+            },
+            {
+                "id": 722,
+                "name": "Secr├®tariat VO BSAL",
+                "code": "SECRÉTARIAT_VO_BSAL"
+            },
+            {
+                "id": 723,
+                "name": "Vente VO BSAL",
+                "code": "VENTE_VO_BSAL"
+            },
+            {
+                "id": 724,
+                "name": "Commerce VU BSAL",
+                "code": "COMMERCE_VU_BSAL"
+            },
+            {
+                "id": 725,
+                "name": "Secr├®tariat VU BSAL",
+                "code": "SECRÉTARIAT_VU_BSAL"
+            },
+            {
+                "id": 726,
+                "name": "Vente VU BSAL",
+                "code": "VENTE_VU_BSAL"
+            },
+            {
+                "id": 727,
+                "name": "Comptabilit├® BSAL",
+                "code": "COMPTABILITÉ_BSAL"
+            },
+            {
+                "id": 728,
+                "name": "Direction BSAL",
+                "code": "DIRECTION_BSAL"
+            },
+            {
+                "id": 730,
+                "name": "APV M├®canique BSAL",
+                "code": "APV_MÉCANIQUE_BSAL"
+            },
+            {
+                "id": 731,
+                "name": "Atelier BSAL",
+                "code": "ATELIER_BSAL"
+            },
+            {
+                "id": 732,
+                "name": "Secr├®tariat APV BSAL",
+                "code": "SECRÉTARIAT_APV_BSAL"
+            },
+            {
+                "id": 733,
+                "name": "Qualit├® BSAL",
+                "code": "QUALITÉ_BSAL"
+            },
+            {
+                "id": 734,
+                "name": "Pr├®paration Esth├®tique BSAL",
+                "code": "PRÉPARATION_ESTHÉTIQUE_BSAL"
+            },
+            {
+                "id": 735,
+                "name": "PRA BSAL",
+                "code": "PRA_BSAL"
+            },
+            {
+                "id": 736,
+                "name": "Services Transverses",
+                "code": "SERVICES_TRANSVERSES"
+            },
+            {
+                "id": 737,
+                "name": "S.O.MO Fenouillet",
+                "code": "S.O.MO_FENOUILLET"
+            },
+            {
+                "id": 738,
+                "name": "Commerce VN SOMO Fenouillet",
+                "code": "COMMERCE_VN_SOMO_FENOUILLET"
+            },
+            {
+                "id": 739,
+                "name": "Secr├®tariat VN SOMO Fenouillet",
+                "code": "SECRÉTARIAT_VN_SOMO_FENOUILLET"
+            },
+            {
+                "id": 740,
+                "name": "Vente VN SOMO Fenouillet",
+                "code": "VENTE_VN_SOMO_FENOUILLET"
+            },
+            {
+                "id": 741,
+                "name": "APV M├®canique SOMO Fenouillet",
+                "code": "APV_MÉCANIQUE_SOMO_FENOUILLET"
+            },
+            {
+                "id": 742,
+                "name": "Atelier SOMO Fenouillet",
+                "code": "ATELIER_SOMO_FENOUILLET"
+            },
+            {
+                "id": 743,
+                "name": "Secr├®tariat APV SOMO Fenouillet",
+                "code": "SECRÉTARIAT_APV_SOMO_FENOUILLET"
+            },
+            {
+                "id": 744,
+                "name": "Commerce VO SOMO Fenouillet",
+                "code": "COMMERCE_VO_SOMO_FENOUILLET"
+            },
+            {
+                "id": 745,
+                "name": "Vente VO S.O.MO Fenouillet",
+                "code": "VENTE_VO_S.O.MO_FENOUILLET"
+            },
+            {
+                "id": 746,
+                "name": "Secr├®tariat VO SOMO Fenouillet",
+                "code": "SECRÉTARIAT_VO_SOMO_FENOUILLET"
+            },
+            {
+                "id": 748,
+                "name": "Comptabilit├® S.O.MO Fenouillet",
+                "code": "COMPTABILITÉ_S.O.MO_FENOUILLET"
+            },
+            {
+                "id": 749,
+                "name": "Marketing S.O.MO Fenouillet",
+                "code": "MARKETING_S.O.MO_FENOUILLET"
+            },
+            {
+                "id": 750,
+                "name": "Secr├®tariat APV SODEX",
+                "code": "SECRETARIAT_APV_SODEX"
+            },
+            {
+                "id": 751,
+                "name": "Location SOMEDA",
+                "code": "LOCATION_SOMEDA"
+            },
+            {
+                "id": 752,
+                "name": "AUTO PORT - LIBOURNE",
+                "code": "AUTO_PORT_-_LIBOURNE"
+            },
+            {
+                "id": 753,
+                "name": "Commerce VN AP-L",
+                "code": "COMMERCE_VN_AP-L"
+            },
+            {
+                "id": 754,
+                "name": "Secr├®tariat VN AP-L",
+                "code": "SECRETARIAT_VN_AP-L"
+            },
+            {
+                "id": 755,
+                "name": "Vente VN AP-L",
+                "code": "VENTE_VN_AP-L"
+            },
+            {
+                "id": 757,
+                "name": "Commerce VO AP-L",
+                "code": "COMMERCE_VO_AP-L"
+            },
+            {
+                "id": 758,
+                "name": "Secr├®tariat VO AP-L",
+                "code": "SECRETARIAT_VO_AP-L"
+            },
+            {
+                "id": 759,
+                "name": "Vente VO AP-L",
+                "code": "VENTE_VO_AP-L"
+            },
+            {
+                "id": 760,
+                "name": "Commerce VU AP-L",
+                "code": "COMMERCE_VU_AP-L"
+            },
+            {
+                "id": 761,
+                "name": "Secr├®tariat VU AP-L",
+                "code": "SECRETARIAT_VU_AP-L"
+            },
+            {
+                "id": 762,
+                "name": "Vente VU AP-L",
+                "code": "VENTE_VU_AP-L"
+            },
+            {
+                "id": 763,
+                "name": "Comptabilit├® AP-L",
+                "code": "COMPTABILITE_AP-L"
+            },
+            {
+                "id": 764,
+                "name": "Marketing AP-L",
+                "code": "MARKETING_AP-L"
+            },
+            {
+                "id": 765,
+                "name": "APV M├®canique AP-L",
+                "code": "APV_MECANIQUE_AP-L"
+            },
+            {
+                "id": 766,
+                "name": "Pr├®paration Esth├®tique AP-L",
+                "code": "PREPARATION_ESTHETIQUE_AP-L"
+            },
+            {
+                "id": 767,
+                "name": "Atelier AP-L",
+                "code": "ATELIER_AP-L"
+            },
+            {
+                "id": 768,
+                "name": "Secr├®tariat APV AP-L",
+                "code": "SECRETARIAT_APV_AP-L"
+            },
+            {
+                "id": 769,
+                "name": "Qualit├® AP-L",
+                "code": "QUALITE_AP-L"
+            },
+            {
+                "id": 770,
+                "name": "PRA AP-L",
+                "code": "PRA_AP-L"
+            },
+            {
+                "id": 771,
+                "name": "Commerce VN\/VO SEAT CUPRA",
+                "code": "COMMERCE_VN\/VO_SEAT_CUPRA"
+            },
+            {
+                "id": 772,
+                "name": "Vente VN\/VO SEAT CUPRA",
+                "code": "VENTE_VN\/VO_SEAT_CUPRA"
+            }
+        ]
+    }
+}

+ 47 - 0
all_json/execute_post_now.php

@@ -0,0 +1,47 @@
+
+<?php
+
+/**
+ * Script pour exécuter POST_userV2.php et afficher le résultat
+ */
+
+// Rediriger json_response pour capturer la sortie
+function json_response_override($statusCode, $payload) {
+    echo "HTTP Code: {$statusCode}\n\n";
+    echo json_encode($payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n";
+    exit;
+}
+
+echo "🚀 Exécution de POST_userV2.php...\n\n";
+
+// Capturer toute la sortie
+ob_start();
+
+// Redéfinir json_response temporairement
+$script_content = file_get_contents(__DIR__ . '/../api/user/user/POST_userV2.php');
+
+// Remplacer json_response pour qu'elle n'utilise pas exit mais retourne
+$script_content = str_replace(
+    'function json_response(int $statusCode, array $payload): void {',
+    'function json_response_original(int $statusCode, array $payload): void {',
+    $script_content
+);
+
+$script_content = str_replace(
+    'json_response(',
+    'json_response_override(',
+    $script_content
+);
+
+// Évaluer le script modifié
+eval('?>' . $script_content);
+
+$output = ob_get_clean();
+
+if (!empty($output)) {
+    echo $output;
+} else {
+    echo "⚠️  Aucune sortie générée.\n";
+    echo "Le script s'est peut-être terminé silencieusement.\n";
+}
+

+ 90 - 0
all_json/execute_post_test.php

@@ -0,0 +1,90 @@
+<?php
+/**
+ * Script pour exécuter une requête POST_userV2.php de test
+ */
+
+// Charger le JSON de la requête
+$json_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($json_file), true);
+
+if ($post_data === null) {
+    die("❌ Erreur: Impossible de charger le fichier post_user_request.json\n");
+}
+
+// Générer un nouveau login unique pour éviter les conflits
+$timestamp = time();
+$post_data['login'] = "test.user.{$timestamp}@sipa-automobiles.fr";
+$post_data['mail'] = $post_data['login'];
+$post_data['employeeNumber'] = "TEST{$timestamp}";
+$post_data['dtContractStart'] = date('Y-m-d\TH:i:s', strtotime('+1 day'));
+$post_data['seniorityDate'] = $post_data['dtContractStart'];
+
+echo "🚀 Exécution de la requête POST_userV2.php...\n\n";
+echo "📋 Données envoyées:\n";
+echo json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n\n";
+
+// Simuler une requête POST en appelant directement le script PHP
+$_SERVER['REQUEST_METHOD'] = 'POST';
+$_GET = [];
+$_POST = [];
+
+// Capturer le body de la requête
+$json_body = json_encode($post_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
+
+// Créer un fichier temporaire pour simuler php://input
+$temp_file = tempnam(sys_get_temp_dir(), 'php_input_');
+file_put_contents($temp_file, $json_body);
+
+// Rediriger php://input vers notre fichier temporaire
+// Note: On ne peut pas vraiment rediriger php://input, donc on va utiliser curl
+
+echo "📡 Envoi de la requête via curl...\n\n";
+
+$ch = curl_init();
+curl_setopt($ch, CURLOPT_URL, 'http://localhost/api/user/user/POST_userV2.php');
+curl_setopt($ch, CURLOPT_POST, true);
+curl_setopt($ch, CURLOPT_POSTFIELDS, $json_body);
+curl_setopt($ch, CURLOPT_HTTPHEADER, [
+    'Content-Type: application/json',
+    'Content-Length: ' . strlen($json_body)
+]);
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+curl_setopt($ch, CURLOPT_VERBOSE, false);
+curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+
+$response = curl_exec($ch);
+$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+$curl_error = curl_error($ch);
+curl_close($ch);
+
+echo "📊 Résultat:\n";
+echo "HTTP Code: {$http_code}\n\n";
+
+if ($curl_error) {
+    echo "❌ Erreur cURL: {$curl_error}\n";
+    echo "\n💡 Astuce: Assurez-vous que votre serveur web local est démarré (Apache/Nginx)\n";
+    echo "   et que l'URL http://localhost/api/user/user/POST_userV2.php est accessible.\n";
+} else {
+    echo "📄 Réponse:\n";
+    
+    // Essayer de formater la réponse JSON
+    $response_json = json_decode($response, true);
+    if ($response_json !== null) {
+        echo json_encode($response_json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n";
+    } else {
+        echo $response . "\n";
+    }
+    
+    if ($http_code === 200 || $http_code === 201) {
+        echo "\n✅ Utilisateur créé avec succès!\n";
+    } else {
+        echo "\n⚠️  La requête a retourné le code HTTP {$http_code}\n";
+    }
+}
+
+// Nettoyer
+if (file_exists($temp_file)) {
+    unlink($temp_file);
+}
+

+ 76 - 0
all_json/execute_post_with_test_mode.php

@@ -0,0 +1,76 @@
+<?php
+/**
+ * Script pour exécuter POST_userV2.php en mode test
+ * en modifiant temporairement le fichier pour utiliser nos données
+ */
+
+echo "🚀 Exécution de POST_userV2.php en mode test...\n\n";
+
+// Charger nos données
+$json_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($json_file), true);
+
+// Générer un nouveau login unique
+$timestamp = time();
+$post_data['login'] = "test.user.{$timestamp}@sipa-automobiles.fr";
+$post_data['mail'] = $post_data['login'];
+$post_data['employeeNumber'] = "TEST{$timestamp}";
+$post_data['dtContractStart'] = date('Y-m-d\TH:i:s', strtotime('+1 day'));
+$post_data['seniorityDate'] = $post_data['dtContractStart'];
+
+echo "📋 Données de la requête:\n";
+echo json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n\n";
+
+// Lire le script POST_userV2.php
+$script_path = __DIR__ . '/../api/user/user/POST_userV2.php';
+$script_content = file_get_contents($script_path);
+
+// Sauvegarder l'original
+$backup_path = $script_path . '.backup';
+if (!file_exists($backup_path)) {
+    file_put_contents($backup_path, $script_content);
+    echo "💾 Backup créé: {$backup_path}\n\n";
+}
+
+// Activer USE_TEST_DATA
+$script_content = str_replace(
+    "define('USE_TEST_DATA', false);",
+    "define('USE_TEST_DATA', true);",
+    $script_content
+);
+
+// Remplacer les données de test
+$test_data_pattern = '/if \(USE_TEST_DATA\) \{[^}]*\$input = \[.*?\];/s';
+$replacement = "if (USE_TEST_DATA) {\n    \$input = " . var_export($post_data, true) . ";";
+
+if (preg_match($test_data_pattern, $script_content)) {
+    $script_content = preg_replace($test_data_pattern, $replacement, $script_content);
+} else {
+    // Méthode alternative : trouver et remplacer manuellement
+    $start_pos = strpos($script_content, 'if (USE_TEST_DATA) {');
+    if ($start_pos !== false) {
+        $end_pos = strpos($script_content, '}', $start_pos + 50);
+        if ($end_pos !== false) {
+            $old_block = substr($script_content, $start_pos, $end_pos - $start_pos + 1);
+            $new_block = "if (USE_TEST_DATA) {\n    \$input = " . var_export($post_data, true) . ";\n}";
+            $script_content = str_replace($old_block, $new_block, $script_content);
+        }
+    }
+}
+
+// Sauvegarder temporairement
+file_put_contents($script_path, $script_content);
+
+echo "📡 Exécution du script...\n\n";
+
+// Capturer la sortie
+ob_start();
+include $script_path;
+$output = ob_get_clean();
+
+echo $output;
+
+// Restaurer l'original
+file_put_contents($script_path, file_get_contents($backup_path));
+echo "\n✅ Script restauré à son état original\n";
+

BIN
all_json/legal_entities.json


+ 222 - 0
all_json/legal_entities_fixed.json

@@ -0,0 +1,222 @@
+{
+    "success": true,
+    "legal_entities": [
+        {
+            "id": 1,
+            "name": "Auto Port",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/1"
+        },
+        {
+            "id": 2,
+            "name": "Sud Garonne Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/2"
+        },
+        {
+            "id": 4,
+            "name": "Bordeaux Sud Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/4"
+        },
+        {
+            "id": 5,
+            "name": "Sodeco",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/5"
+        },
+        {
+            "id": 7,
+            "name": "Etablissement Lavillauroy Lescar",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/7"
+        },
+        {
+            "id": 8,
+            "name": "Etablissement Lavillauroy Skoda",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/8"
+        },
+        {
+            "id": 9,
+            "name": "Etablissement Lavillauroy Tarbes",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/9"
+        },
+        {
+            "id": 11,
+            "name": "VPN France",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/11"
+        },
+        {
+            "id": 12,
+            "name": "VPN France Moune",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/12"
+        },
+        {
+            "id": 14,
+            "name": "Auto Ouest",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/14"
+        },
+        {
+            "id": 15,
+            "name": "CAP Nord Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/15"
+        },
+        {
+            "id": 16,
+            "name": "CAP Nord Rive Droite",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/16"
+        },
+        {
+            "id": 17,
+            "name": "Auto 33",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/17"
+        },
+        {
+            "id": 18,
+            "name": "MGS",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/18"
+        },
+        {
+            "id": 19,
+            "name": "Bor├®al",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/19"
+        },
+        {
+            "id": 20,
+            "name": "Bor├®al Nord",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/20"
+        },
+        {
+            "id": 21,
+            "name": "CAP Ouest",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/21"
+        },
+        {
+            "id": 24,
+            "name": "Bordeaux Motors",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/24"
+        },
+        {
+            "id": 25,
+            "name": "Bordeaux Motors La Teste",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/25"
+        },
+        {
+            "id": 27,
+            "name": "CAP Nord BEARN",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/27"
+        },
+        {
+            "id": 28,
+            "name": "VPN Bordeaux Lormont",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/28"
+        },
+        {
+            "id": 29,
+            "name": "VPN Bordeaux Merignac",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/29"
+        },
+        {
+            "id": 31,
+            "name": "Auto Nord",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/31"
+        },
+        {
+            "id": 32,
+            "name": "Someda",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/32"
+        },
+        {
+            "id": 34,
+            "name": "MDS",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/34"
+        },
+        {
+            "id": 37,
+            "name": "Mont De Marsan Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/37"
+        },
+        {
+            "id": 38,
+            "name": "Pau Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/38"
+        },
+        {
+            "id": 40,
+            "name": "Externe",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/40"
+        },
+        {
+            "id": 43,
+            "name": "LABO MD LUXEMBOURG",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/43"
+        },
+        {
+            "id": 44,
+            "name": "Sipa Automobiles",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/44"
+        },
+        {
+            "id": 46,
+            "name": "CAP NORD BASCO LANDES - Anglet",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/46"
+        },
+        {
+            "id": 47,
+            "name": "CAP NORD BASCO LANDES - Saint-Avit",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/47"
+        },
+        {
+            "id": 48,
+            "name": "ATOCHIM",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/48"
+        },
+        {
+            "id": 49,
+            "name": "Pau Automobiles Navarre",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/49"
+        },
+        {
+            "id": 50,
+            "name": "Pau Automobiles Est",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/50"
+        },
+        {
+            "id": 53,
+            "name": "S.O.MO",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/53"
+        },
+        {
+            "id": 54,
+            "name": "SODEX",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/54"
+        },
+        {
+            "id": 55,
+            "name": "Milano",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/55"
+        },
+        {
+            "id": 56,
+            "name": "Milano Mont de Marsan",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/56"
+        },
+        {
+            "id": 57,
+            "name": "Bordeaux Sud Automobiles Libourne",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/57"
+        },
+        {
+            "id": 58,
+            "name": "S.O.MO Fenouillet",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/58"
+        },
+        {
+            "id": 59,
+            "name": "SODECO VRP",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/59"
+        },
+        {
+            "id": 60,
+            "name": "Auto Port \/ Libourne",
+            "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/legalentities\/60"
+        }
+    ],
+    "count": 43,
+    "note": "Les legal entities sont r├®cup├®r├®es via les utilisateurs car l'API Lucca ne fournit pas d'endpoint direct pour les lister"
+}

BIN
all_json/post_response.json


+ 32 - 0
all_json/post_user_request.json

@@ -0,0 +1,32 @@
+{
+    "firstName": "Jean",
+    "lastName": "Dupont",
+    "login": "test.user.1762620916@sipa-automobiles.fr",
+    "mail": "test.user.1762620916@sipa-automobiles.fr",
+    "dtContractStart": "2025-11-09T16:55:16",
+    "legalEntityId": 1,
+    "departmentId": 2,
+    "cultureID": 1036,
+    "rolePrincipalId": 4,
+    "employeeNumber": "TEST1762620916",
+    "managerId": 1919,
+    "birthDate": "1990-05-15T00:00:00",
+    "calendarId": null,
+    "habilitedRoles": [
+        {
+            "id": 3
+        }
+    ],
+    "jobTitle": "Développeur Full Stack",
+    "gender": "Male",
+    "address": "123 rue de la Paix, 75001 Paris",
+    "personalEmail": "jean.dupont.perso@gmail.com",
+    "personalMobile": "+33612345678",
+    "professionalMobile": "+33687654321",
+    "allowsElectronicPayslip": true,
+    "bankName": "Banque Postale",
+    "iban": "FR0312739000302346383836C42",
+    "bic": "PSSTFRPPXXX",
+    "nationalityId": "FR",
+    "seniorityDate": "2025-11-09T16:55:16"
+}

+ 39 - 0
all_json/result.txt

@@ -0,0 +1,39 @@
+
+Warning: Constant USE_TEST_DATA already defined in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 71
+php : PHP Warning:  Constant USE_TEST_DATA already defined in 
+C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 71
+Au caractère Ligne:1 : 1
++ php -r "define('USE_TEST_DATA', true); require 'api/user/user/POST_us ...
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    + CategoryInfo          : NotSpecified: (PHP Warning:  C....php on line 71:String) [], RemoteException
+    + FullyQualifiedErrorId : NativeCommandError
+ 
+
+Warning: http_response_code(): Cannot set response code - headers already sent (output started at C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 77
+PHP Warning:  http_response_code(): Cannot set response code - headers already sent (output started at 
+C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in 
+C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 77
+
+Warning: Cannot modify header information - headers already sent by (output started at C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 78
+{
+    "error": "Error creating user",
+    "status": 403,
+    "message": "Forbidden",
+    "lucca_response": {
+        "type": "https:\/\/tools.ietf.org\/html\/rfc9110#section-15.5.4",
+        "title": "Forbidden",
+        "status": 403,
+        "detail": "Exception of type 'Lucca.Core.Shared.Domain.Exceptions.ForbiddenException' was thrown.",
+        "Message": "Exception of type 'Lucca.Core.Shared.Domain.Exceptions.ForbiddenException' was thrown.",
+        "traceId": "00-c2278ed1e86d4003b501c7a3af0f6b48-b7e6053a2150965a-00"
+    },
+    "type": "Forbidden",
+    "suggestion": "Your API token does not have permission to create users. Check API token permissions in Lucca settings.",
+    "debug": {
+        "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users",
+        "total_time": 0.358808
+    }
+PHP Warning:  Cannot modify header information - headers already sent by (output started at 
+C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php:71) in 
+C:\Users\USER\Documents\Intersel\dev\Lucca\api\user\user\POST_userV2.php on line 78
+}

BIN
all_json/roles.json


+ 467 - 0
all_json/roles_fixed.json

@@ -0,0 +1,467 @@
+{
+    "success": true,
+    "roles": {
+        "items": [
+            {
+                "id": 2,
+                "name": "Administrateur G├®n├®ral"
+            },
+            {
+                "id": 3,
+                "name": "Manager"
+            },
+            {
+                "id": 4,
+                "name": "Utilisateur"
+            },
+            {
+                "id": 13,
+                "name": "Comptable - Auto Nord"
+            },
+            {
+                "id": 20,
+                "name": "Comptable - Auto 33"
+            },
+            {
+                "id": 21,
+                "name": "Comptable - Auto Ouest"
+            },
+            {
+                "id": 22,
+                "name": "Comptable - Auto Port"
+            },
+            {
+                "id": 24,
+                "name": "Comptable - Bordeaux Motors"
+            },
+            {
+                "id": 26,
+                "name": "Comptable - Bordeaux Sud Automobiles"
+            },
+            {
+                "id": 27,
+                "name": "Comptable - Bor├®al"
+            },
+            {
+                "id": 29,
+                "name": "Comptable - Cap Nord Automobiles"
+            },
+            {
+                "id": 30,
+                "name": "Comptable - Cap Nord B├®arn"
+            },
+            {
+                "id": 32,
+                "name": "Comptable - Cap Ouest"
+            },
+            {
+                "id": 33,
+                "name": "Comptable - Etablissement Lavillauroy"
+            },
+            {
+                "id": 37,
+                "name": "Comptable - Labo MD"
+            },
+            {
+                "id": 39,
+                "name": "Comptable - MDS"
+            },
+            {
+                "id": 42,
+                "name": "Comptable - MGS"
+            },
+            {
+                "id": 43,
+                "name": "Comptable - Mont De Marsan Automobiles"
+            },
+            {
+                "id": 44,
+                "name": "Comptable - Pau Automobiles"
+            },
+            {
+                "id": 47,
+                "name": "Comptable - Sodeco"
+            },
+            {
+                "id": 48,
+                "name": "Comptable - Someda"
+            },
+            {
+                "id": 49,
+                "name": "Comptable - Sud Garonne Automobiles"
+            },
+            {
+                "id": 50,
+                "name": "Comptable - VPN Bordeaux"
+            },
+            {
+                "id": 52,
+                "name": "Comptable - VPN France"
+            },
+            {
+                "id": 56,
+                "name": "Directeur - Auto 33"
+            },
+            {
+                "id": 57,
+                "name": "Directeur - Auto Nord"
+            },
+            {
+                "id": 58,
+                "name": "Directeur - Auto Ouest"
+            },
+            {
+                "id": 59,
+                "name": "Directeur - Auto Port"
+            },
+            {
+                "id": 61,
+                "name": "Directeur - Bordeaux Motors"
+            },
+            {
+                "id": 63,
+                "name": "Directeur - Bordeaux Sud Automobiles"
+            },
+            {
+                "id": 64,
+                "name": "Directeur - Bor├®al"
+            },
+            {
+                "id": 66,
+                "name": "Directeur - CAP Nord Automobiles"
+            },
+            {
+                "id": 67,
+                "name": "Directeur - CAP Nord B├®arn"
+            },
+            {
+                "id": 69,
+                "name": "Directeur - CAP Ouest"
+            },
+            {
+                "id": 70,
+                "name": "Directeur - Etablissement Lavillauroy"
+            },
+            {
+                "id": 78,
+                "name": "Directeur - MDS Lormont"
+            },
+            {
+                "id": 79,
+                "name": "Directeur - MGS"
+            },
+            {
+                "id": 80,
+                "name": "Directeur - Mont De Marsan Automobiles"
+            },
+            {
+                "id": 81,
+                "name": "Directeur - Pau Automobiles"
+            },
+            {
+                "id": 84,
+                "name": "Directeur - Sodeco"
+            },
+            {
+                "id": 85,
+                "name": "Directeur - Someda"
+            },
+            {
+                "id": 86,
+                "name": "Directeur - Sud Garonne Automobiles"
+            },
+            {
+                "id": 87,
+                "name": "Directeur - VPN Bordeaux"
+            },
+            {
+                "id": 89,
+                "name": "Directeur - VPN France"
+            },
+            {
+                "id": 93,
+                "name": "Admin RH \/ Gestionnaire de paie - Sandrine Darnaude"
+            },
+            {
+                "id": 95,
+                "name": "Adm Gestionnaire de paie - Herv├® Remy"
+            },
+            {
+                "id": 96,
+                "name": "Administrateur RH - Laura Menguy"
+            },
+            {
+                "id": 97,
+                "name": "Utilisateur - MGS"
+            },
+            {
+                "id": 98,
+                "name": "Manager - MGS"
+            },
+            {
+                "id": 101,
+                "name": "Vision dossier RH"
+            },
+            {
+                "id": 102,
+                "name": "Utilisateur - MDS"
+            },
+            {
+                "id": 103,
+                "name": "Manager - MDS"
+            },
+            {
+                "id": 104,
+                "name": "Dirigeant - MGS"
+            },
+            {
+                "id": 105,
+                "name": "Dirigeant - Sodeco"
+            },
+            {
+                "id": 106,
+                "name": "Administrateur RH - Laura"
+            },
+            {
+                "id": 107,
+                "name": "Vision trombinoscope"
+            },
+            {
+                "id": 108,
+                "name": "Admin RH \/ Gestionnaire de paie - Sandrine"
+            },
+            {
+                "id": 109,
+                "name": "Gestionnaire de paie - Herv├®"
+            },
+            {
+                "id": 110,
+                "name": "Fictif - Poplee Entretien"
+            },
+            {
+                "id": 112,
+                "name": "Cleemy - Contr├┤leur"
+            },
+            {
+                "id": 114,
+                "name": "Pas de droit (hors Cleemy)"
+            },
+            {
+                "id": 115,
+                "name": "Cleemy - Utilisateur"
+            },
+            {
+                "id": 117,
+                "name": "Cleemy - Manager"
+            },
+            {
+                "id": 119,
+                "name": "Signature ├®lectronique"
+            },
+            {
+                "id": 120,
+                "name": "Voir collab partis VPN"
+            },
+            {
+                "id": 122,
+                "name": "Comptable - Sipa Automobiles"
+            },
+            {
+                "id": 123,
+                "name": "Comptable - Darmendrail"
+            },
+            {
+                "id": 124,
+                "name": "Directeur - Darmendrail"
+            },
+            {
+                "id": 125,
+                "name": "Gestionnaire de paie - SODECO"
+            },
+            {
+                "id": 126,
+                "name": "Signature ├®lectronique Recrutement"
+            },
+            {
+                "id": 127,
+                "name": "Vision Plaque APV"
+            },
+            {
+                "id": 128,
+                "name": "Vision Concessions"
+            },
+            {
+                "id": 129,
+                "name": "Comptable - ATOCHIM"
+            },
+            {
+                "id": 130,
+                "name": "Directeur - ATOCHIM"
+            },
+            {
+                "id": 131,
+                "name": "Cleemy - Contr├┤leur MDS"
+            },
+            {
+                "id": 132,
+                "name": "Cleemy - Contr├┤leur MGS"
+            },
+            {
+                "id": 135,
+                "name": "Utilisateur - MGS secondaire"
+            },
+            {
+                "id": 138,
+                "name": "Vision absences groupe"
+            },
+            {
+                "id": 140,
+                "name": "Accès Formation"
+            },
+            {
+                "id": 143,
+                "name": "Utilisateurs - Pagga BDP"
+            },
+            {
+                "id": 145,
+                "name": "Comptable - SOMO"
+            },
+            {
+                "id": 146,
+                "name": "Directeur - SOMO"
+            },
+            {
+                "id": 147,
+                "name": "Comptable - Navarre et Pau Est"
+            },
+            {
+                "id": 150,
+                "name": "Directeur - Pau Navarre et Est"
+            },
+            {
+                "id": 151,
+                "name": "Vision Entretiens N-2 H.RUIZ"
+            },
+            {
+                "id": 152,
+                "name": "Rapports - Poplee Core RH"
+            },
+            {
+                "id": 153,
+                "name": "Comptable - SODEX"
+            },
+            {
+                "id": 154,
+                "name": "Directeur - SODEX"
+            },
+            {
+                "id": 155,
+                "name": "Vision Directeur P├┤le Bdx"
+            },
+            {
+                "id": 156,
+                "name": "Vision Directeur P├┤le Volvo"
+            },
+            {
+                "id": 157,
+                "name": "Vision Directeur P├┤le Fiat Tlse"
+            },
+            {
+                "id": 158,
+                "name": "Vision Directeur P├┤le LL"
+            },
+            {
+                "id": 159,
+                "name": "Comptable - Milano"
+            },
+            {
+                "id": 160,
+                "name": "Directeur - Milano"
+            },
+            {
+                "id": 162,
+                "name": "Cleemy - Contr├┤leur SIPA"
+            },
+            {
+                "id": 163,
+                "name": "Admin RH \/ Gestionnaire de paie - Nora"
+            },
+            {
+                "id": 164,
+                "name": "Admin RH \/ Gestionnaire de paie - Nora B"
+            },
+            {
+                "id": 167,
+                "name": "Vision - Partie Equipements"
+            },
+            {
+                "id": 168,
+                "name": "Administrateur RH - Cong├® Mat CG"
+            },
+            {
+                "id": 169,
+                "name": "Comptable partiel SOMO"
+            },
+            {
+                "id": 170,
+                "name": "Skills - User"
+            },
+            {
+                "id": 171,
+                "name": "Skills - Manager"
+            },
+            {
+                "id": 172,
+                "name": "Skills - Administrator"
+            },
+            {
+                "id": 173,
+                "name": "Visibilit├® Bilan RH"
+            },
+            {
+                "id": 174,
+                "name": "RH - Sodeco"
+            },
+            {
+                "id": 175,
+                "name": "Manager - SODECO"
+            },
+            {
+                "id": 176,
+                "name": "Client Center - Shared Sandbox connection"
+            },
+            {
+                "id": 177,
+                "name": "RH - Formation et Juridique"
+            },
+            {
+                "id": 180,
+                "name": "Accès Formation FL"
+            },
+            {
+                "id": 181,
+                "name": "Vision manager"
+            },
+            {
+                "id": 182,
+                "name": "Visibilit├® Atelier AN"
+            },
+            {
+                "id": 183,
+                "name": "Vision Entretiens comptables"
+            },
+            {
+                "id": 184,
+                "name": "Vision entretiens et documents contractuels"
+            },
+            {
+                "id": 185,
+                "name": "Cleemy - Contr├┤leur VPN FRANCE"
+            },
+            {
+                "id": 186,
+                "name": "API Lucca\/LivinWeb"
+            }
+        ]
+    }
+}

+ 26 - 0
all_json/run_post_simple.php

@@ -0,0 +1,26 @@
+<?php
+/**
+ * Script simple pour exécuter POST_userV2.php
+ */
+
+echo "🚀 Exécution de la requête POST_userV2.php...\n\n";
+
+// Inclure directement le script
+$script = __DIR__ . '/../api/user/user/POST_userV2.php';
+
+// Capturer la sortie
+ob_start();
+include $script;
+$output = ob_get_clean();
+
+if (!empty($output)) {
+    echo "📄 Réponse:\n";
+    echo $output . "\n";
+} else {
+    echo "⚠️  Aucune sortie. Vérifiez les erreurs:\n";
+    $errors = error_get_last();
+    if ($errors) {
+        print_r($errors);
+    }
+}
+

+ 23 - 0
all_json/run_post_test.php

@@ -0,0 +1,23 @@
+<?php
+/**
+ * Script wrapper pour exécuter POST_userV2.php et capturer la sortie
+ */
+
+echo "🚀 Exécution de POST_userV2.php en mode test...\n\n";
+
+// Capturer la sortie
+ob_start();
+
+// Inclure le script
+$script_path = __DIR__ . '/../api/user/user/POST_userV2.php';
+include $script_path;
+
+$output = ob_get_clean();
+
+echo "📄 Réponse:\n";
+echo $output . "\n";
+
+if (empty($output)) {
+    echo "⚠️  Aucune sortie générée. Vérifiez les erreurs PHP.\n";
+    echo "Essayez: php -d display_errors=1 api/user/user/POST_userV2.php\n";
+}

+ 21 - 0
all_json/send_curl_request.ps1

@@ -0,0 +1,21 @@
+# Script PowerShell pour envoyer la requête POST avec curl
+# Format Windows PowerShell
+
+$jsonFile = Join-Path $PSScriptRoot "post_user_request.json"
+$url = "http://localhost/api/user/user/POST_userV2.php"
+
+Write-Host "🚀 Envoi de la requête POST..." -ForegroundColor Yellow
+Write-Host "📄 Fichier JSON: $jsonFile" -ForegroundColor Cyan
+Write-Host "🌐 URL: $url" -ForegroundColor Cyan
+Write-Host ""
+
+# Commande curl formatée pour Windows
+$curlCommand = "curl -X POST `"$url`" -H `"Content-Type: application/json`" -d `"@$jsonFile`""
+
+Write-Host "📋 Commande curl:" -ForegroundColor Green
+Write-Host $curlCommand
+Write-Host ""
+
+# Exécuter la commande
+Invoke-Expression $curlCommand
+

+ 20 - 0
all_json/send_curl_request.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+# Script bash pour envoyer la requête POST avec curl
+# Format Linux/Mac
+
+JSON_FILE="post_user_request.json"
+URL="http://localhost/api/user/user/POST_userV2.php"
+
+echo "🚀 Envoi de la requête POST..."
+echo "📄 Fichier JSON: $JSON_FILE"
+echo "🌐 URL: $URL"
+echo ""
+
+# Commande curl formatée
+curl -X POST "$URL" \
+  -H "Content-Type: application/json" \
+  -d "@$JSON_FILE"
+
+echo ""
+echo "✅ Requête envoyée!"
+

+ 88 - 0
all_json/send_post_request.php

@@ -0,0 +1,88 @@
+<?php
+/**
+ * Script pour envoyer la requête POST_userV2.php
+ */
+
+echo "🚀 Envoi de la requête POST pour créer un utilisateur...\n\n";
+
+// Charger le JSON
+$json_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($json_file), true);
+
+// Générer un nouveau login unique
+$timestamp = time();
+$post_data['login'] = "test.user.{$timestamp}@sipa-automobiles.fr";
+$post_data['mail'] = $post_data['login'];
+$post_data['employeeNumber'] = "TEST{$timestamp}";
+$post_data['dtContractStart'] = date('Y-m-d\TH:i:s', strtotime('+1 day'));
+$post_data['seniorityDate'] = $post_data['dtContractStart'];
+
+echo "📋 Données de la requête:\n";
+echo json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n\n";
+
+// Envoyer la requête via curl
+$ch = curl_init();
+curl_setopt($ch, CURLOPT_URL, 'http://localhost/api/user/user/POST_userV2.php');
+curl_setopt($ch, CURLOPT_POST, true);
+curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
+curl_setopt($ch, CURLOPT_HTTPHEADER, [
+    'Content-Type: application/json'
+]);
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
+curl_setopt($ch, CURLOPT_TIMEOUT, 30);
+curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+
+echo "📡 Envoi de la requête...\n\n";
+
+$response = curl_exec($ch);
+$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+$curl_error = curl_error($ch);
+$curl_errno = curl_errno($ch);
+curl_close($ch);
+
+if ($curl_errno !== 0) {
+    echo "❌ Erreur de connexion: {$curl_error}\n";
+    echo "\n💡 Le serveur web local n'est peut-être pas démarré.\n";
+    echo "   Essayez de démarrer votre serveur web ou utilisez:\n";
+    echo "   php -S localhost:8000\n\n";
+    
+    echo "📝 Alternative: Testez en activant USE_TEST_DATA dans POST_userV2.php\n";
+    exit(1);
+}
+
+echo "📊 Résultat:\n";
+echo "HTTP Code: {$http_code}\n\n";
+
+if ($http_code > 0) {
+    echo "📄 Réponse:\n";
+    
+    // Essayer de formater la réponse JSON
+    $response_json = json_decode($response, true);
+    if ($response_json !== null) {
+        echo json_encode($response_json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n";
+    } else {
+        echo $response . "\n";
+    }
+    
+    if ($http_code === 200 || $http_code === 201) {
+        echo "\n✅ Utilisateur créé avec succès!\n";
+    } elseif ($http_code === 409) {
+        echo "\n⚠️  Conflit: Un utilisateur avec ce login/email existe déjà.\n";
+        echo "   Le login généré était: {$post_data['login']}\n";
+    } elseif ($http_code === 400) {
+        echo "\n⚠️  Erreur de validation: Vérifiez les données envoyées.\n";
+    } elseif ($http_code === 401) {
+        echo "\n⚠️  Non autorisé: Vérifiez votre token API Lucca.\n";
+    } elseif ($http_code === 403) {
+        echo "\n⚠️  Permissions insuffisantes: Votre token n'a pas les droits nécessaires.\n";
+    } elseif ($http_code === 500) {
+        echo "\n⚠️  Erreur serveur: Vérifiez que tous les IDs (legalEntityId, departmentId, etc.) sont valides.\n";
+    } else {
+        echo "\n⚠️  La requête a retourné le code HTTP {$http_code}\n";
+    }
+} else {
+    echo "❌ Aucune réponse du serveur\n";
+}
+

+ 14 - 0
all_json/send_request_cmd.bat

@@ -0,0 +1,14 @@
+@echo off
+REM Script batch pour envoyer la requête POST (syntaxe CMD correcte)
+
+echo 🚀 Envoi de la requête POST...
+echo.
+
+REM Commande curl formatée pour CMD (avec ^ pour continuer les lignes)
+curl -X POST "http://localhost/api/user/user/POST_userV2.php" ^
+  -H "Content-Type: application/json" ^
+  -d "@post_user_request.json"
+
+echo.
+echo ✅ Requête envoyée!
+

+ 64 - 0
all_json/simple_post_test.php

@@ -0,0 +1,64 @@
+<?php
+/**
+ * Script simple pour tester POST_userV2.php
+ */
+
+echo "🚀 Test POST_userV2.php\n\n";
+
+// Charger nos données
+$json_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($json_file), true);
+
+// Générer un nouveau login unique
+$timestamp = time();
+$post_data['login'] = "test.user.{$timestamp}@sipa-automobiles.fr";
+$post_data['mail'] = $post_data['login'];
+$post_data['employeeNumber'] = "TEST{$timestamp}";
+$post_data['dtContractStart'] = date('Y-m-d\TH:i:s', strtotime('+1 day'));
+$post_data['seniorityDate'] = $post_data['dtContractStart'];
+
+echo "📋 Données:\n";
+print_r($post_data);
+echo "\n";
+
+// Modifier POST_userV2.php temporairement
+$script_path = __DIR__ . '/../api/user/user/POST_userV2.php';
+$content = file_get_contents($script_path);
+
+// Activer USE_TEST_DATA et remplacer les données
+$content = str_replace(
+    "define('USE_TEST_DATA', false);",
+    "define('USE_TEST_DATA', true);",
+    $content
+);
+
+// Remplacer les données de test
+$old_test_data = '$input = [
+        // Champs REQUIS (non-nullable)
+        "firstName" => "John",';
+$new_test_data = '$input = ' . var_export($post_data, true) . ';';
+
+$pos = strpos($content, $old_test_data);
+if ($pos !== false) {
+    $end_pos = strpos($content, '];', $pos);
+    if ($end_pos !== false) {
+        $content = substr_replace($content, $new_test_data, $pos, $end_pos - $pos + 2);
+    }
+}
+
+// Sauvegarder temporairement
+$temp_script = sys_get_temp_dir() . '/POST_userV2_test_' . $timestamp . '.php';
+file_put_contents($temp_script, $content);
+
+echo "📡 Exécution...\n\n";
+
+// Capturer la sortie
+ob_start();
+include $temp_script;
+$output = ob_get_clean();
+
+echo $output;
+
+// Nettoyer
+unlink($temp_script);
+

+ 29 - 0
all_json/start_server_and_send.bat

@@ -0,0 +1,29 @@
+@echo off
+REM Script batch pour démarrer le serveur PHP et envoyer la requête
+
+echo 🚀 Démarrage du serveur PHP et envoi de la requête POST...
+echo.
+
+REM Démarrer le serveur PHP en arrière-plan
+start /B php -S localhost:8000 -t ..\api
+
+REM Attendre que le serveur démarre
+timeout /t 2 /nobreak >nul
+
+echo 📡 Envoi de la requête POST...
+echo.
+
+REM Envoyer la requête curl
+curl -X POST "http://localhost:8000/user/user/POST_userV2.php" ^
+  -H "Content-Type: application/json" ^
+  -d "@post_user_request.json"
+
+echo.
+echo ✅ Requête envoyée!
+echo.
+echo Appuyez sur une touche pour arrêter le serveur...
+pause >nul
+
+REM Arrêter le serveur (trouver le processus PHP et le tuer)
+taskkill /F /IM php.exe >nul 2>&1
+

+ 34 - 0
all_json/test_post.ps1

@@ -0,0 +1,34 @@
+# Script PowerShell pour tester la requête POST_userV2.php
+# avec toutes les données récupérées depuis les endpoints
+
+$jsonFile = Join-Path $PSScriptRoot "post_user_request.json"
+$url = "http://localhost/api/user/user/POST_userV2.php"
+
+if (-not (Test-Path $jsonFile)) {
+    Write-Host "❌ Erreur: Le fichier $jsonFile n'existe pas!" -ForegroundColor Red
+    exit 1
+}
+
+Write-Host "📋 Fichier JSON: $jsonFile" -ForegroundColor Cyan
+Write-Host "🌐 URL: $url" -ForegroundColor Cyan
+Write-Host ""
+
+Write-Host "🚀 Envoi de la requête POST..." -ForegroundColor Yellow
+Write-Host ""
+
+try {
+    $jsonContent = Get-Content $jsonFile -Raw
+    $response = Invoke-RestMethod -Uri $url -Method Post -Body $jsonContent -ContentType "application/json" -ErrorAction Stop
+    
+    Write-Host "✅ Succès!" -ForegroundColor Green
+    Write-Host ""
+    Write-Host "📄 Réponse:" -ForegroundColor Cyan
+    $response | ConvertTo-Json -Depth 10
+} catch {
+    Write-Host "❌ Erreur lors de la requête:" -ForegroundColor Red
+    Write-Host $_.Exception.Message -ForegroundColor Red
+    if ($_.ErrorDetails) {
+        Write-Host $_.ErrorDetails.Message -ForegroundColor Red
+    }
+}
+

+ 107 - 0
all_json/test_post_direct.php

@@ -0,0 +1,107 @@
+<?php
+/**
+ * Script pour tester POST_userV2.php directement
+ * en simulant l'environnement HTTP POST
+ */
+
+// Charger le JSON de la requête
+$json_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($json_file), true);
+
+if ($post_data === null) {
+    die("❌ Erreur: Impossible de charger le fichier post_user_request.json\n");
+}
+
+// Générer un nouveau login unique pour éviter les conflits
+$timestamp = time();
+$post_data['login'] = "test.user.{$timestamp}@sipa-automobiles.fr";
+$post_data['mail'] = $post_data['login'];
+$post_data['employeeNumber'] = "TEST{$timestamp}";
+$post_data['dtContractStart'] = date('Y-m-d\TH:i:s', strtotime('+1 day'));
+$post_data['seniorityDate'] = $post_data['dtContractStart'];
+
+echo "🚀 Test de création d'utilisateur avec POST_userV2.php\n\n";
+echo "📋 Données de la requête:\n";
+echo json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n\n";
+
+// Simuler l'environnement HTTP POST
+$_SERVER['REQUEST_METHOD'] = 'POST';
+$_SERVER['HTTP_CONTENT_TYPE'] = 'application/json';
+$_GET = [];
+$_POST = [];
+
+// Simuler php://input en créant un stream temporaire
+$json_body = json_encode($post_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
+
+// Créer un fichier temporaire et le rediriger
+$temp_input = tempnam(sys_get_temp_dir(), 'php_input');
+file_put_contents($temp_input, $json_body);
+
+// Utiliser une approche différente : inclure directement le script
+// mais d'abord, rediriger file_get_contents('php://input') vers notre fichier
+
+// Solution : utiliser output buffering et inclure le script
+ob_start();
+
+// Simuler php://input en modifiant le contexte de stream
+// Note: On ne peut pas vraiment modifier php://input, donc on va utiliser une autre approche
+
+// Créer un wrapper de stream personnalisé ou utiliser une autre méthode
+// Pour l'instant, testons avec curl vers localhost
+
+echo "📡 Tentative d'envoi via HTTP...\n\n";
+
+$ch = curl_init('http://localhost/api/user/user/POST_userV2.php');
+curl_setopt($ch, CURLOPT_POST, true);
+curl_setopt($ch, CURLOPT_POSTFIELDS, $json_body);
+curl_setopt($ch, CURLOPT_HTTPHEADER, [
+    'Content-Type: application/json'
+]);
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
+curl_setopt($ch, CURLOPT_TIMEOUT, 30);
+
+$response = curl_exec($ch);
+$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+$curl_error = curl_error($ch);
+$curl_errno = curl_errno($ch);
+curl_close($ch);
+
+if ($curl_errno !== 0) {
+    echo "❌ Erreur de connexion: {$curl_error}\n";
+    echo "\n💡 Le serveur web local n'est peut-être pas démarré.\n";
+    echo "   Essayez de démarrer votre serveur web (Apache/Nginx) ou utilisez:\n";
+    echo "   php -S localhost:8000\n\n";
+    
+    echo "📝 Alternative: Testez directement avec le script PHP:\n";
+    echo "   En modifiant POST_userV2.php pour utiliser USE_TEST_DATA = true\n";
+} else {
+    echo "📊 Résultat:\n";
+    echo "HTTP Code: {$http_code}\n\n";
+    
+    if ($http_code > 0) {
+        echo "📄 Réponse:\n";
+        $response_json = json_decode($response, true);
+        if ($response_json !== null) {
+            echo json_encode($response_json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n";
+        } else {
+            echo $response . "\n";
+        }
+        
+        if ($http_code === 200 || $http_code === 201) {
+            echo "\n✅ Utilisateur créé avec succès!\n";
+        } elseif ($http_code === 409) {
+            echo "\n⚠️  Conflit: Un utilisateur avec ce login/email existe déjà.\n";
+        } elseif ($http_code === 400) {
+            echo "\n⚠️  Erreur de validation: Vérifiez les données envoyées.\n";
+        } else {
+            echo "\n⚠️  La requête a retourné le code HTTP {$http_code}\n";
+        }
+    }
+}
+
+// Nettoyer
+if (file_exists($temp_input)) {
+    unlink($temp_input);
+}
+

+ 44 - 0
all_json/test_post_request.php

@@ -0,0 +1,44 @@
+<?php
+/**
+ * Script pour tester la requête POST_userV2.php
+ * avec toutes les données récupérées depuis les endpoints
+ */
+
+$post_data_file = __DIR__ . '/post_user_request.json';
+$post_data = json_decode(file_get_contents($post_data_file), true);
+
+if ($post_data === null) {
+    die("❌ Erreur: Impossible de charger le fichier post_user_request.json\n");
+}
+
+echo "📋 Données de la requête POST:\n";
+echo json_encode($post_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . "\n\n";
+
+echo "🚀 Test de la requête POST_userV2.php...\n\n";
+
+// Simuler la requête POST
+$_SERVER['REQUEST_METHOD'] = 'POST';
+$_GET = [];
+
+// Capturer la sortie
+ob_start();
+
+// Simuler le body de la requête
+file_put_contents('php://temp', json_encode($post_data));
+
+// Inclure le fichier POST_userV2.php
+// Note: On ne peut pas vraiment exécuter le fichier car il nécessite un serveur web
+// Mais on peut afficher les données qui seraient envoyées
+
+echo "✅ Données prêtes pour la requête POST!\n";
+echo "\n";
+echo "Pour tester avec curl:\n";
+echo "curl -X POST http://localhost/api/user/user/POST_userV2.php \\\n";
+echo "  -H \"Content-Type: application/json\" \\\n";
+echo "  -d '" . json_encode($post_data, JSON_UNESCAPED_SLASHES) . "'\n";
+echo "\n";
+echo "Ou avec le fichier JSON:\n";
+echo "curl -X POST http://localhost/api/user/user/POST_userV2.php \\\n";
+echo "  -H \"Content-Type: application/json\" \\\n";
+echo "  -d @" . realpath($post_data_file) . "\n";
+

BIN
all_json/users.json


+ 2414 - 0
all_json/users_fixed.json

@@ -0,0 +1,2414 @@
+{
+    "input": {
+        "limit": 100,
+        "offset": 0,
+        "active_only": false
+    },
+    "users": [
+        {
+            "id": 1919,
+            "name": "Th├®o ABDESSADOK",
+            "login": "theo.abdessadok@sipa-automobiles.fr",
+            "mail": "theo.abdessadok-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-08-01T00:00:00",
+            "dtContractEnd": "2026-08-29T00:00:00",
+            "employeeNumber": "541136",
+            "department": {
+                "id": 467,
+                "name": "Vente VN SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/467"
+            },
+            "manager": {
+                "id": 1817,
+                "name": "Anthony JEANNETON",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1817"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 2,
+            "name": "Karine ABEILHOU",
+            "login": "karine.abeilhou@sipa-automobiles.fr",
+            "mail": "karine.abeilhou-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-04-03T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "031305",
+            "department": {
+                "id": 243,
+                "name": "Comptabilit├® BOND",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/243"
+            },
+            "manager": {
+                "id": 1599,
+                "name": "Aude LOUSTALOT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1599"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1857,
+            "name": "Paul ABJEAN",
+            "login": "paul.abjean@sipa-automobiles.fr",
+            "mail": "paul.abjean-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-04-14T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541074",
+            "department": {
+                "id": 203,
+                "name": "Vente VU BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/203"
+            },
+            "manager": {
+                "id": 106,
+                "name": "Julien GARNIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/106"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 704,
+            "name": "Nathalie AGAR",
+            "login": "nathalie.agar@sipa-automobiles.fr",
+            "mail": "nathalie.agar-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-06-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "370565",
+            "department": {
+                "id": 474,
+                "name": "Comptabilit├® SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/474"
+            },
+            "manager": {
+                "id": 25,
+                "name": "Nathalie DESGRANGES-ZIRPHILE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/25"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1482,
+            "name": "Elodie Aiello",
+            "login": "elodie.aiello@sipa-automobiles.fr",
+            "mail": "elodie.aiello-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540700",
+            "department": {
+                "id": 714,
+                "name": "Marketing MILANO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/714"
+            },
+            "manager": {
+                "id": 638,
+                "name": "Aur├®lie MARBOEUF",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/638"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1238,
+            "name": "Lep AKONO",
+            "login": "lep.akono@sipa-automobiles.fr",
+            "mail": "lep.akono-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-05-09T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540447",
+            "department": {
+                "id": 208,
+                "name": "Atelier BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/208"
+            },
+            "manager": {
+                "id": 1794,
+                "name": "Patrice CLEDAT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1794"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1151,
+            "name": "Armand ALBEROLA",
+            "login": "armand.alberola@sipa-automobiles.fr",
+            "mail": "armand.alberola-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540366",
+            "department": {
+                "id": 615,
+                "name": "PRA CNBL Anglet",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/615"
+            },
+            "manager": {
+                "id": 347,
+                "name": "Alain BARBET",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/347"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 984,
+            "name": "Jeannelle ALEXIS",
+            "login": "jeannelle.alexis@vpn-autos.fr",
+            "mail": "jeannelle.alexis-vpn-autos.fr@factice.eu",
+            "dtContractStart": "2025-08-18T00:00:00",
+            "dtContractEnd": "2026-08-29T00:00:00",
+            "employeeNumber": "540166",
+            "department": {
+                "id": 505,
+                "name": "VPN FRANCE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/505"
+            },
+            "manager": {
+                "id": 27,
+                "name": "DAVID KERIVEL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/27"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 705,
+            "name": "Audrey ALIS",
+            "login": "audrey.alis@sipa-automobiles.fr",
+            "mail": "audrey.alis-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2010-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "370309",
+            "department": {
+                "id": 469,
+                "name": "Secr├®tariat VO SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/469"
+            },
+            "manager": {
+                "id": 707,
+                "name": "Richard BARBOULE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/707"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1409,
+            "name": "Mehdi ALLOUCHE",
+            "login": "mehdi.allouche@sipa-automobiles.fr",
+            "mail": "mehdi.allouche-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-03T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540588",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 947,
+                "name": "Mathilde QUEME",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/947"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1575,
+            "name": "Stessy ALPHE",
+            "login": "stessy.alphe@sipa-automobiles.fr",
+            "mail": "stessy.alphe-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-05-21T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540791",
+            "department": {
+                "id": 342,
+                "name": "Atelier ETLL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/342"
+            },
+            "manager": {
+                "id": 451,
+                "name": "Jos├® Manuel MARTINS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/451"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 232,
+            "name": "Delphine AMARO",
+            "login": "delphine.amaro@sipa-automobiles.fr",
+            "mail": "delphine.amaro-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2013-01-28T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "000001",
+            "department": {
+                "id": 569,
+                "name": "Vente VN FCA BM",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/569"
+            },
+            "manager": {
+                "id": 251,
+                "name": "Benoit PICHOT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/251"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 394,
+            "name": "Jean Michel AMAT",
+            "login": "jm.amat@sipa-automobiles.fr",
+            "mail": "jm.amat-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2013-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "170042",
+            "department": {
+                "id": 320,
+                "name": "Direction CO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/320"
+            },
+            "manager": {
+                "id": 563,
+                "name": "Hubert GERARDIN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/563"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1833,
+            "name": "Laurent ANCAUSSE",
+            "login": "laurent.ancausse@sipa-automobiles.fr",
+            "mail": "laurent.ancausse-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-03-13T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541050",
+            "department": {
+                "id": 565,
+                "name": "Vente VN OPEL AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/565"
+            },
+            "manager": {
+                "id": 1817,
+                "name": "Anthony JEANNETON",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1817"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1871,
+            "name": "Theo ANQUETIL",
+            "login": "theo.anquetil@sipa-automobiles.fr",
+            "mail": "theo.anquetil-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-05-12T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541088",
+            "department": {
+                "id": 685,
+                "name": "Atelier SODEX",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/685"
+            },
+            "manager": {
+                "id": 1450,
+                "name": "S├®bastien BRU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1450"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1889,
+            "name": "Aric ANTEBI",
+            "login": "aric.antebi@sipa-automobiles.fr",
+            "mail": "aric.antebi-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-07-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541106",
+            "department": {
+                "id": 566,
+                "name": "Vente VN HYUNDAI AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/566"
+            },
+            "manager": {
+                "id": 773,
+                "name": "Geoffrey BARBET",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/773"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 537,
+            "name": "Odile ANTUNES",
+            "login": "odile.antunes@sipa-automobiles.fr",
+            "mail": "odile.antunes-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2020-09-07T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "430045",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 947,
+                "name": "Mathilde QUEME",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/947"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1695,
+            "name": "Leonardo ANTUNES BATARDA",
+            "login": "leonardo.batarda@sipa-automobiles.fr",
+            "mail": "leonardo.batarda-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-06T00:00:00",
+            "dtContractEnd": "2027-10-09T00:00:00",
+            "employeeNumber": "540914",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 547,
+                "name": "Antony GILBERT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/547"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 993,
+            "name": "Nicolas ARGOUET",
+            "login": "nicolas.argouet@sipa-automobiles.fr",
+            "mail": "nicolas.argouet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-01-18T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540182",
+            "department": {
+                "id": 124,
+                "name": "Vente VO AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/124"
+            },
+            "manager": {
+                "id": 195,
+                "name": "Carlos FERREIRA LEITE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/195"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 2002,
+            "name": "Guillaume ARIBAUD",
+            "login": "guillaume.aribaud@sipa-automobiles.fr",
+            "mail": "guillaume.aribaud-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-15T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541218",
+            "department": {
+                "id": 564,
+                "name": "Vente VN FCA AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/564"
+            },
+            "manager": {
+                "id": 991,
+                "name": "David SOUCARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/991"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1645,
+            "name": "Allaoua ARICHE",
+            "login": "allaoua.ariche@sipa-automobiles.fr",
+            "mail": "allaoua.ariche-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-07-15T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540860",
+            "department": {
+                "id": 211,
+                "name": "Carrosserie BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/211"
+            },
+            "manager": {
+                "id": 292,
+                "name": "David LANNELUC",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/292"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 658,
+            "name": "Pauline ARNAUD",
+            "login": "pauline.arnaud@sodeco-sa.fr",
+            "mail": "pauline.arnaud-sodeco-sa.fr@factice.eu",
+            "dtContractStart": "2020-06-24T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "010062",
+            "department": {
+                "id": 531,
+                "name": "Sodeco",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/531"
+            },
+            "manager": {
+                "id": 1713,
+                "name": "Pascal DUPONT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1713"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 482,
+            "name": "St├®phane ARTUS",
+            "login": "stephane.artus@sipa-automobiles.fr",
+            "mail": "stephane.artus-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2019-08-12T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "402177",
+            "department": {
+                "id": 385,
+                "name": "PRA ETLT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/385"
+            },
+            "manager": {
+                "id": 454,
+                "name": "Michel MONTEIRO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/454"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1766,
+            "name": "Sandrine ARZUR",
+            "login": "sandrine.arzur@sipa-automobiles.fr",
+            "mail": "sandrine.arzur-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-02-03T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540983",
+            "department": {
+                "id": 568,
+                "name": "Vente VN HYUNDAI AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/568"
+            },
+            "manager": {
+                "id": 196,
+                "name": "Benjamin FOUSSAT GARCIA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/196"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1627,
+            "name": "Davoud ASLANOV",
+            "login": "davoud.aslanov@sipa-automobiles.fr",
+            "mail": "davoud.aslanov-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540842",
+            "department": {
+                "id": 362,
+                "name": "Atelier ETLS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/362"
+            },
+            "manager": {
+                "id": 451,
+                "name": "Jos├® Manuel MARTINS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/451"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 144,
+            "name": "Julia ASTILLEROS",
+            "login": "julia.astilleros@sipa-automobiles.fr",
+            "mail": "julia.astilleros-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-09-11T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "120217",
+            "department": {
+                "id": 102,
+                "name": "Vente VN AO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/102"
+            },
+            "manager": {
+                "id": 173,
+                "name": "G├®rald PARRINELLO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/173"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1749,
+            "name": "Julien ASTRUC",
+            "login": "julien.astruc@sipa-automobiles.fr",
+            "mail": "julien.astruc-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-12-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540966",
+            "department": {
+                "id": 566,
+                "name": "Vente VN HYUNDAI AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/566"
+            },
+            "manager": {
+                "id": 1889,
+                "name": "Aric ANTEBI",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1889"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 706,
+            "name": "Jonathan AUBIN",
+            "login": "jonathan.aubin@sipa-automobiles.fr",
+            "mail": "jonathan.aubin-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-04-03T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "370450",
+            "department": {
+                "id": 482,
+                "name": "Carrosserie SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/482"
+            },
+            "manager": {
+                "id": 1970,
+                "name": "Kelian ENGRAND",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1970"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1523,
+            "name": "Fr├®d├®ric AUCUIT",
+            "login": "frederic.aucuit@sipa-automobiles.fr",
+            "mail": "frederic.aucuit-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-01-09T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540740",
+            "department": {
+                "id": 458,
+                "name": "Atelier PAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/458"
+            },
+            "manager": {
+                "id": 620,
+                "name": "Frederic CORREIA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/620"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1071,
+            "name": "Charly AUGIS",
+            "login": "charly.augis@vpn-autos.fr",
+            "mail": "charly.augis-vpn-autos.fr@factice.eu",
+            "dtContractStart": "2023-09-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540254",
+            "department": {
+                "id": 505,
+                "name": "VPN FRANCE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/505"
+            },
+            "manager": {
+                "id": 828,
+                "name": "Benjamin BEUZIT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/828"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1036,
+            "name": "Fr├®d├®ric AUGIS",
+            "login": "frederic.augis@sipa-automobiles.fr",
+            "mail": "frederic.augis-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-09-05T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540224",
+            "department": {
+                "id": 458,
+                "name": "Atelier PAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/458"
+            },
+            "manager": {
+                "id": 620,
+                "name": "Frederic CORREIA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/620"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 179,
+            "name": "Islam AVDULLAHU",
+            "login": "islam.avdullahu@sipa-automobiles.fr",
+            "mail": "islam.avdullahu-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2020-02-03T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "011265",
+            "department": {
+                "id": 132,
+                "name": "Atelier AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/132"
+            },
+            "manager": {
+                "id": 1547,
+                "name": "Julien GASQUET",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1547"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 2014,
+            "name": "Igoline AWOLIMON",
+            "login": "igoline.awolimon@sipa-automobiles.fr",
+            "mail": "igoline.awolimon-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-22T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541230",
+            "department": {
+                "id": 474,
+                "name": "Comptabilit├® SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/474"
+            },
+            "manager": {
+                "id": 25,
+                "name": "Nathalie DESGRANGES-ZIRPHILE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/25"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 933,
+            "name": "Julie BACHELIER",
+            "login": "julie.bachelier@sipa-automobiles.fr",
+            "mail": "julie.bachelier-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-11-05T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540324",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 947,
+                "name": "Mathilde QUEME",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/947"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1986,
+            "name": "Laura BACQUEY",
+            "login": "laura.bacquey@sipa-automobiles.fr",
+            "mail": "laura.bacquey-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": "2026-09-16T00:00:00",
+            "employeeNumber": "541202",
+            "department": {
+                "id": 571,
+                "name": "Vente VN FCA BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/571"
+            },
+            "manager": {
+                "id": 106,
+                "name": "Julien GARNIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/106"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 260,
+            "name": "Mamadou BAH",
+            "login": "mamadou.bah@sipa-automobiles.fr",
+            "mail": "mamadou.bah-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-12-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "060303",
+            "department": {
+                "id": 213,
+                "name": "PRA BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/213"
+            },
+            "manager": {
+                "id": 309,
+                "name": "Thierry SAEZ",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/309"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1554,
+            "name": "Antoine BAILLON",
+            "login": "antoine.baillon@sipa-automobiles.fr",
+            "mail": "antoine.baillon-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-03-04T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540770",
+            "department": {
+                "id": 430,
+                "name": "Vente VO MMA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/430"
+            },
+            "manager": {
+                "id": 585,
+                "name": "Thomas DUPOUY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/585"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 345,
+            "name": "C├®line BAKOUR",
+            "login": "celine.bakour@sipa-automobiles.fr",
+            "mail": "celine.bakour-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2006-10-09T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "040066",
+            "department": {
+                "id": 262,
+                "name": "Comptabilit├® CN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/262"
+            },
+            "manager": {
+                "id": 11,
+                "name": "Cyrielle PLU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/11"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 556,
+            "name": "Xavier BALEIX",
+            "login": "xavier.baleix@sodeco-sa.fr",
+            "mail": "xavier.baleix-sodeco-sa.fr@factice.eu",
+            "dtContractStart": "2024-06-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "140074",
+            "department": {
+                "id": 531,
+                "name": "Sodeco",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/531"
+            },
+            "manager": {
+                "id": 1713,
+                "name": "Pascal DUPONT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1713"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 261,
+            "name": "Ibrahim BALLO",
+            "login": "ibrahim.ballo@sipa-automobiles.fr",
+            "mail": "ibrahim.ballo-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-08-05T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540207",
+            "department": {
+                "id": 208,
+                "name": "Atelier BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/208"
+            },
+            "manager": {
+                "id": 1794,
+                "name": "Patrice CLEDAT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1794"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 611,
+            "name": "Aline BALTZINGER",
+            "login": "aline.baltzinger@sipa-automobiles.fr",
+            "mail": "aline.baltzinger-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-12-07T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "S11421",
+            "department": {
+                "id": 459,
+                "name": "Secr├®tariat APV PAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/459"
+            },
+            "manager": {
+                "id": 636,
+                "name": "Laurent LOUMAGNE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/636"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1948,
+            "name": "Florent BARBARIN",
+            "login": "florent.barbarin@sipa-automobiles.fr",
+            "mail": "florent.barbarin-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541165",
+            "department": {
+                "id": 381,
+                "name": "Atelier ETLT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/381"
+            },
+            "manager": {
+                "id": 492,
+                "name": "Romain GAROCHAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/492"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 347,
+            "name": "Alain BARBET",
+            "login": "alain.barbet@sipa-automobiles.fr",
+            "mail": "alain.barbet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "040125",
+            "department": {
+                "id": 608,
+                "name": "Direction CNBL Anglet",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/608"
+            },
+            "manager": {
+                "id": 563,
+                "name": "Hubert GERARDIN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/563"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 773,
+            "name": "Geoffrey BARBET",
+            "login": "geoffrey.barbet@sipa-automobiles.fr",
+            "mail": "geoffrey.barbet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-07-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "350158",
+            "department": {
+                "id": 495,
+                "name": "Direction SGA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/495"
+            },
+            "manager": {
+                "id": 504,
+                "name": "J├®r├┤me BOS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/504"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1886,
+            "name": "Tom BARBETTE",
+            "login": "tom.barbette@sipa-automobiles.fr",
+            "mail": "tom.barbette-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-06-10T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541103",
+            "department": {
+                "id": 674,
+                "name": "Vente VN S.O.MO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/674"
+            },
+            "manager": {
+                "id": 1990,
+                "name": "Michael MOTHIE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1990"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 707,
+            "name": "Richard BARBOULE",
+            "login": "richard.barboule@sipa-automobiles.fr",
+            "mail": "richard.barboule-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2016-05-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "370428",
+            "department": {
+                "id": 470,
+                "name": "Vente VO SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/470"
+            },
+            "manager": {
+                "id": 504,
+                "name": "J├®r├┤me BOS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/504"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 234,
+            "name": "Thomas BARBOULE",
+            "login": "thomas.barboule@sipa-automobiles.fr",
+            "mail": "thomas.barboule-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "000064",
+            "department": {
+                "id": 162,
+                "name": "Vente VO BM",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/162"
+            },
+            "manager": {
+                "id": 238,
+                "name": "David CLEMENCEAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/238"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1382,
+            "name": "Michelle BARBY",
+            "login": "michelle.barby@sipa-automobiles.fr",
+            "mail": "michelle.barby-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540602",
+            "department": {
+                "id": 649,
+                "name": "Atelier PAU NAVARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/649"
+            },
+            "manager": {
+                "id": 1403,
+                "name": "Didier TREGUIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1403"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 708,
+            "name": "Franck Alain BAREGE",
+            "login": "franck.barege@sipa-automobiles.fr",
+            "mail": "franck.barege-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "370441",
+            "department": {
+                "id": 467,
+                "name": "Vente VN SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/467"
+            },
+            "manager": {
+                "id": 991,
+                "name": "David SOUCARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/991"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1383,
+            "name": "Flavie BARERE",
+            "login": "flavie.barere@sipa-automobiles.fr",
+            "mail": "flavie.barere-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540603",
+            "department": {
+                "id": 644,
+                "name": "Comptabilit├® PAU NAVARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/644"
+            },
+            "manager": {
+                "id": 636,
+                "name": "Laurent LOUMAGNE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/636"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1971,
+            "name": "Mario BARICHELLO",
+            "login": "mario.barichello@sipa-automobiles.fr",
+            "mail": "mario.barichello-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-16T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541188",
+            "department": {
+                "id": 467,
+                "name": "Vente VN SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/467"
+            },
+            "manager": {
+                "id": 991,
+                "name": "David SOUCARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/991"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1939,
+            "name": "Quentin BARLOT",
+            "login": "quentin.barlot@sipa-automobiles.fr",
+            "mail": "quentin.barlot-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": "2026-09-08T00:00:00",
+            "employeeNumber": "541156",
+            "department": {
+                "id": 64,
+                "name": "Vente VN A33",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/64"
+            },
+            "manager": {
+                "id": 214,
+                "name": "C├®dric PERCHERY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/214"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 612,
+            "name": "Alexandre BARON",
+            "login": "alexandre.baron@sipa-automobiles.fr",
+            "mail": "alexandre.baron-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2019-04-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "S10319",
+            "department": {
+                "id": 458,
+                "name": "Atelier PAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/458"
+            },
+            "manager": {
+                "id": 620,
+                "name": "Frederic CORREIA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/620"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 709,
+            "name": "Gilles BARTHES",
+            "login": "gilles.barthes@sipa-automobiles.fr",
+            "mail": "gilles.barthes-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-07-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "350419",
+            "department": {
+                "id": 225,
+                "name": "Direction BO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/225"
+            },
+            "manager": {
+                "id": 347,
+                "name": "Alain BARBET",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/347"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 313,
+            "name": "Kevin BARTHES",
+            "login": "kevin.barthes@sipa-automobiles.fr",
+            "mail": "kevin.barthes-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-08-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "050148",
+            "department": {
+                "id": 228,
+                "name": "Atelier BO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/228"
+            },
+            "manager": {
+                "id": 709,
+                "name": "Gilles BARTHES",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/709"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1999,
+            "name": "Geoffroy BEHAGHEL",
+            "login": "geoffroy.behaghel@sipa-automobiles.fr",
+            "mail": "geoffroy.behaghel-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-17T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541215",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 551,
+                "name": "Joseph FORSYTH",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/551"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1991,
+            "name": "Djanik BEKER",
+            "login": "djanik.beker@sipa-automobiles.fr",
+            "mail": "djanik.beker-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-05T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541207",
+            "department": {
+                "id": 685,
+                "name": "Atelier SODEX",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/685"
+            },
+            "manager": {
+                "id": 1454,
+                "name": "Fernando DE FREITAS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1454"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1987,
+            "name": "Louis BEL",
+            "login": "louis.bel@sipa-automobiles.fr",
+            "mail": "louis.bel-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": "2027-08-31T00:00:00",
+            "employeeNumber": "541203",
+            "department": {
+                "id": 75,
+                "name": "Atelier A33",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/75"
+            },
+            "manager": {
+                "id": 1830,
+                "name": "Jean-Pascal PAPPALARDO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1830"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1705,
+            "name": "Karim BELKACEM",
+            "login": "karim.belkacem@sipa-automobiles.fr",
+            "mail": "karim.belkacem-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540924",
+            "department": {
+                "id": 566,
+                "name": "Vente VN HYUNDAI AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/566"
+            },
+            "manager": {
+                "id": 1889,
+                "name": "Aric ANTEBI",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1889"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1162,
+            "name": "Albertine BELLOCQ PAUTARD",
+            "login": "albertine.bellocq@sipa-automobiles.fr",
+            "mail": "albertine.bellocq-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540377",
+            "department": {
+                "id": 617,
+                "name": "Vente VN CNBL Saint-Avit",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/617"
+            },
+            "manager": {
+                "id": 347,
+                "name": "Alain BARBET",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/347"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 483,
+            "name": "Mohammed BENCHAT",
+            "login": "mohammed.benchat@sipa-automobiles.fr",
+            "mail": "mohammed.benchat-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2015-10-19T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "402166",
+            "department": {
+                "id": 381,
+                "name": "Atelier ETLT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/381"
+            },
+            "manager": {
+                "id": 492,
+                "name": "Romain GAROCHAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/492"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1894,
+            "name": "Oc├®ane BENEDA",
+            "login": "oceane.beneda@labo-md.com",
+            "mail": "oceane.beneda-labo-md.com@factice.eu",
+            "dtContractStart": "2025-06-16T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541111",
+            "department": {
+                "id": 596,
+                "name": "Labo Lux",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/596"
+            },
+            "manager": {
+                "id": 1425,
+                "name": "Mathilde NACRY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1425"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1384,
+            "name": "Damien BENETAZZO",
+            "login": "damien.benetazzo@sipa-automobiles.fr",
+            "mail": "damien.benetazzo-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-08-07T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540604",
+            "department": {
+                "id": 649,
+                "name": "Atelier PAU NAVARRE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/649"
+            },
+            "manager": {
+                "id": 1403,
+                "name": "Didier TREGUIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1403"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1972,
+            "name": "Inès BENNOUR",
+            "login": "ines.bennour@sipa-automobiles.fr",
+            "mail": "ines.bennour-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-08T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541189",
+            "department": {
+                "id": 427,
+                "name": "Vente VN MMA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/427"
+            },
+            "manager": {
+                "id": 585,
+                "name": "Thomas DUPOUY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/585"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 113,
+            "name": "Caroline BERDIE",
+            "login": "caroline.berdie@sipa-automobiles.fr",
+            "mail": "caroline.berdie-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "1989-11-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "380673",
+            "department": {
+                "id": 95,
+                "name": "Secr├®tariat APV AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/95"
+            },
+            "manager": {
+                "id": 742,
+                "name": "Emeline JAVERZAT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/742"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1837,
+            "name": "Quentin BERGE",
+            "login": "quentin.berge@sipa-automobiles.fr",
+            "mail": "quentin.berge-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-03-17T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541054",
+            "department": {
+                "id": 342,
+                "name": "Atelier ETLL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/342"
+            },
+            "manager": {
+                "id": 451,
+                "name": "Jos├® Manuel MARTINS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/451"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 349,
+            "name": "Nafy Kikko BERGERON",
+            "login": "kikko.bergeron@sipa-automobiles.fr",
+            "mail": "kikko.bergeron-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-07-30T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "040170",
+            "department": {
+                "id": 266,
+                "name": "Atelier CN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/266"
+            },
+            "manager": {
+                "id": 310,
+                "name": "Julien SAUMIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/310"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1449,
+            "name": "St├®phane BERGES",
+            "login": "stephane.berges@sipa-automobiles.fr",
+            "mail": "stephane.berges-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540666",
+            "department": {
+                "id": 685,
+                "name": "Atelier SODEX",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/685"
+            },
+            "manager": {
+                "id": 1454,
+                "name": "Fernando DE FREITAS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1454"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1363,
+            "name": "Carl BERNADET",
+            "login": "carl.bernadet@sipa-automobiles.fr",
+            "mail": "carl.bernadet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": "2026-08-31T00:00:00",
+            "employeeNumber": "540571",
+            "department": {
+                "id": 211,
+                "name": "Carrosserie BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/211"
+            },
+            "manager": {
+                "id": 292,
+                "name": "David LANNELUC",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/292"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 264,
+            "name": "Virginie BERNADET",
+            "login": "virginie.bernadet@sipa-automobiles.fr",
+            "mail": "virginie.bernadet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "060311",
+            "department": {
+                "id": 126,
+                "name": "Secr├®tariat VU AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/126"
+            },
+            "manager": {
+                "id": 1274,
+                "name": "Anthony SAYO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1274"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 411,
+            "name": "Kevin BEROT",
+            "login": "kevin.berot@sipa-automobiles.fr",
+            "mail": "kevin.berot-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-05-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "400178",
+            "department": {
+                "id": 342,
+                "name": "Atelier ETLL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/342"
+            },
+            "manager": {
+                "id": 451,
+                "name": "Jos├® Manuel MARTINS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/451"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 929,
+            "name": "Christophe BERTEAU",
+            "login": "christophe.berteau@sipa-automobiles.fr",
+            "mail": "christophe.berteau-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540104",
+            "department": {
+                "id": 731,
+                "name": "Atelier BSAL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/731"
+            },
+            "manager": {
+                "id": 231,
+                "name": "Alexandre VERINES",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/231"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1348,
+            "name": "Anthony BERTOLI",
+            "login": "anthony.bertoli@sipa-automobiles.fr",
+            "mail": "anthony.bertoli-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-10-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540556",
+            "department": {
+                "id": 427,
+                "name": "Vente VN MMA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/427"
+            },
+            "manager": {
+                "id": 595,
+                "name": "Philipus Lodevickus LIEBENBERG",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/595"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 828,
+            "name": "Benjamin BEUZIT",
+            "login": "benjamin.beuzit@vpn-autos.fr",
+            "mail": "benjamin.beuzit-vpn-autos.fr@factice.eu",
+            "dtContractStart": "2022-07-27T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540179",
+            "department": {
+                "id": 505,
+                "name": "VPN FRANCE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/505"
+            },
+            "manager": {
+                "id": 846,
+                "name": "Hugo RUIZ",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/846"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1615,
+            "name": "Florian BIBARD",
+            "login": "florian.bibard@atochim.fr",
+            "mail": "florian.bibard-atochim.fr@factice.eu",
+            "dtContractStart": "2023-03-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540831",
+            "department": {
+                "id": 628,
+                "name": "ATOCHIM",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/628"
+            },
+            "manager": {
+                "id": 1423,
+                "name": "Olivier BIBARD",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1423"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1423,
+            "name": "Olivier BIBARD",
+            "login": "olivier.bibard@atochim.fr",
+            "mail": "olivier.bibard-atochim.fr@factice.eu",
+            "dtContractStart": "2023-10-16T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540638",
+            "department": {
+                "id": 628,
+                "name": "ATOCHIM",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/628"
+            },
+            "manager": {
+                "id": 1713,
+                "name": "Pascal DUPONT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1713"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1974,
+            "name": "Lydie BIENFAIT",
+            "login": "lydie.bienfait@sipa-automobiles.fr",
+            "mail": "lydie.bienfait-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-18T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541191",
+            "department": {
+                "id": 82,
+                "name": "Secr├®tariat VN AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/82"
+            },
+            "manager": {
+                "id": 1817,
+                "name": "Anthony JEANNETON",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1817"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1769,
+            "name": "Dina BIJOU",
+            "login": "dina.bijou@sipa-automobiles.fr",
+            "mail": "dina.bijou-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-01-02T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540986",
+            "department": {
+                "id": 94,
+                "name": "Atelier AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/94"
+            },
+            "manager": {
+                "id": 521,
+                "name": "Jean-Claude NIETTO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/521"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 2012,
+            "name": "François BILLA",
+            "login": "francois.billa@sipa-automobiles.fr",
+            "mail": "francois.billa-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-22T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541228",
+            "department": {
+                "id": 127,
+                "name": "Vente VU AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/127"
+            },
+            "manager": {
+                "id": 1274,
+                "name": "Anthony SAYO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1274"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1003,
+            "name": "Claire BILWES",
+            "login": "claire.vidal@sodeco-sa.fr",
+            "mail": "claire.vidal-sodeco-sa.fr@factice.eu",
+            "dtContractStart": "2011-08-22T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "000301",
+            "department": {
+                "id": 586,
+                "name": "VRP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/586"
+            },
+            "manager": {
+                "id": 1724,
+                "name": "Simon BOUCHAYA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1724"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 182,
+            "name": "M├®lanie BLANCHARD",
+            "login": "melanie.blanchard@sipa-automobiles.fr",
+            "mail": "melanie.blanchard-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2017-05-22T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "011227",
+            "department": {
+                "id": 123,
+                "name": "Secr├®tariat VO AP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/123"
+            },
+            "manager": {
+                "id": 195,
+                "name": "Carlos FERREIRA LEITE",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/195"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 613,
+            "name": "Olivier BLANCHARD",
+            "login": "olivier.blanchard@sipa-automobiles.fr",
+            "mail": "olivier.blanchard-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2015-05-18T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "S10501",
+            "department": {
+                "id": 450,
+                "name": "Vente VO PAU",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/450"
+            },
+            "manager": {
+                "id": 627,
+                "name": "Pierre GENIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/627"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1100,
+            "name": "Jean-Charles BLANCPATIN",
+            "login": "jc.blancpatin@vpn-autos.fr",
+            "mail": "jc.blancpatin-vpn-autos.fr@factice.eu",
+            "dtContractStart": "2022-09-26T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540299",
+            "department": {
+                "id": 518,
+                "name": "Atelier VPNL",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/518"
+            },
+            "manager": {
+                "id": 808,
+                "name": "Justine JOUAN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/808"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1592,
+            "name": "Marie BLANQUET",
+            "login": "marie.blanquet@sipa-automobiles.fr",
+            "mail": "marie.blanquet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-05-06T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540808",
+            "department": {
+                "id": 86,
+                "name": "Vente VO AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/86"
+            },
+            "manager": {
+                "id": 1859,
+                "name": "Tony PELOTIN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1859"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1047,
+            "name": "Axel BLEUNVEN",
+            "login": "axel.bleunven@sipa-automobiles.fr",
+            "mail": "axel.bleunven-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-09-01T00:00:00",
+            "dtContractEnd": "2026-08-31T00:00:00",
+            "employeeNumber": "540238",
+            "department": {
+                "id": 208,
+                "name": "Atelier BSA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/208"
+            },
+            "manager": {
+                "id": 1794,
+                "name": "Patrice CLEDAT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1794"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1152,
+            "name": "Vanessa BLONDEL",
+            "login": "vanessa.blondel@sipa-automobiles.fr",
+            "mail": "vanessa.blondel-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540367",
+            "department": {
+                "id": 603,
+                "name": "Secr├®tariat VN\/VO CNBL Anglet",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/603"
+            },
+            "manager": {
+                "id": 1158,
+                "name": "Richard RODRIGUEZ",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1158"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1153,
+            "name": "Fabien BLOYET",
+            "login": "fabien.bloyet@sipa-automobiles.fr",
+            "mail": "fabien.bloyet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2022-10-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540368",
+            "department": {
+                "id": 627,
+                "name": "Pr├®paration Esth├®tique CNBL Saint-Avit",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/627"
+            },
+            "manager": {
+                "id": 1168,
+                "name": "Romain YVART",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1168"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1644,
+            "name": "Dorian BLUET",
+            "login": "dorian.bluet@sipa-automobiles.fr",
+            "mail": "dorian.bluet-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-01T00:00:00",
+            "dtContractEnd": "2027-08-29T00:00:00",
+            "employeeNumber": "540859",
+            "department": {
+                "id": 478,
+                "name": "Atelier SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/478"
+            },
+            "manager": {
+                "id": 742,
+                "name": "Emeline JAVERZAT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/742"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 503,
+            "name": "Jessica BOENNEC",
+            "login": "jessica.boennec@sipa-automobiles.fr",
+            "mail": "jessica.boennec-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-07-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "290186",
+            "department": {
+                "id": 467,
+                "name": "Vente VN SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/467"
+            },
+            "manager": {
+                "id": 1817,
+                "name": "Anthony JEANNETON",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1817"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1911,
+            "name": "Carine BOEY",
+            "login": "carine.boey@sipa-automobiles.fr",
+            "mail": "carine.boey-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-08-04T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541128",
+            "department": {
+                "id": 487,
+                "name": "Vente VN SGA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/487"
+            },
+            "manager": {
+                "id": 780,
+                "name": "Agnes DUBOIS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/780"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1676,
+            "name": "Tom BOHUON",
+            "login": "tom.bohuon@sipa-automobiles.fr",
+            "mail": "tom.bohuon-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-09-13T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540889",
+            "department": {
+                "id": 236,
+                "name": "Vente VN BOND",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/236"
+            },
+            "manager": {
+                "id": 332,
+                "name": "Francois MEYRIEUX",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/332"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1743,
+            "name": "Narangarav BOLDSUKH",
+            "login": "nami.boldsukh@sipa-automobiles.fr",
+            "mail": "nami.boldsukh-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-01-06T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540960",
+            "department": {
+                "id": 466,
+                "name": "Secr├®tariat VN SOMEDA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/466"
+            },
+            "manager": {
+                "id": 504,
+                "name": "J├®r├┤me BOS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/504"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 663,
+            "name": "Ivan BOLDYCH",
+            "login": "ivan.boldych@sodeco-sa.fr",
+            "mail": "ivan.boldych-sodeco-sa.fr@factice.eu",
+            "dtContractStart": "2022-01-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "000258",
+            "department": {
+                "id": 586,
+                "name": "VRP",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/586"
+            },
+            "manager": {
+                "id": 1425,
+                "name": "Mathilde NACRY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1425"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1548,
+            "name": "Bryan BONDON",
+            "login": "bryan.bondon@sipa-automobiles.fr",
+            "mail": "bryan.bondon-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2024-03-01T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540764",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 1534,
+                "name": "Matthieu GOMBERT",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/1534"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1866,
+            "name": "L├®on BONIS",
+            "login": "leon.bonis@sipa-automobiles.fr",
+            "mail": "leon.bonis-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-05-14T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541083",
+            "department": {
+                "id": 285,
+                "name": "Atelier CNRD",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/285"
+            },
+            "manager": {
+                "id": 310,
+                "name": "Julien SAUMIER",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/310"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 573,
+            "name": "Cedric BONIZZONI",
+            "login": "cedric.bonizzoni@sipa-automobiles.fr",
+            "mail": "cedric.bonizzoni-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2018-03-12T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "030190",
+            "department": {
+                "id": 441,
+                "name": "Pr├®paration Esth├®tique MMA",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/441"
+            },
+            "manager": {
+                "id": 585,
+                "name": "Thomas DUPOUY",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/585"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1914,
+            "name": "Laura BONNEILH",
+            "login": "laura.bonneilh@sipa-automobiles.fr",
+            "mail": "laura.bonneilh-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2025-07-15T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "541131",
+            "department": {
+                "id": 94,
+                "name": "Atelier AN",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/94"
+            },
+            "manager": {
+                "id": 521,
+                "name": "Jean-Claude NIETTO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/521"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 315,
+            "name": "Marine BONNIN",
+            "login": "marine.bonnin@sipa-automobiles.fr",
+            "mail": "marine.bonnin-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-09-20T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "530140",
+            "department": {
+                "id": 247,
+                "name": "Atelier BOND",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/247"
+            },
+            "manager": {
+                "id": 313,
+                "name": "Kevin BARTHES",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/313"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 528,
+            "name": "Oc├®ane BONVARD",
+            "login": "oceane.bonvard@sipa-automobiles.fr",
+            "mail": "oceane.bonvard-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2021-09-14T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "043006",
+            "department": {
+                "id": 554,
+                "name": "MDS",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/554"
+            },
+            "manager": {
+                "id": 947,
+                "name": "Mathilde QUEME",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/947"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        },
+        {
+            "id": 1424,
+            "name": "Laura BORDAS",
+            "login": "laura.bordas@sipa-automobiles.fr",
+            "mail": "laura.bordas-sipa-automobiles.fr@factice.eu",
+            "dtContractStart": "2023-11-20T00:00:00",
+            "dtContractEnd": null,
+            "employeeNumber": "540639",
+            "department": {
+                "id": 680,
+                "name": "Marketing S.O.MO",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/departments\/680"
+            },
+            "manager": {
+                "id": 529,
+                "name": "Herv├® Dupont",
+                "url": "https:\/\/siparh-livinweb.sandbox.eu1.luccasoftware.com\/api\/v3\/users\/529"
+            },
+            "culture": {
+                "id": 1036,
+                "code": "fr-FR",
+                "name": "français (France)"
+            }
+        }
+    ],
+    "count": 100,
+    "total": 0,
+    "offset": 0,
+    "limit": 100,
+    "has_more": false
+}

+ 38 - 3
api/get_legal_entities.php

@@ -21,17 +21,52 @@ function json_response(int $statusCode, array $payload): void {
 // Charge le client API Lucca
 require_once __DIR__ . '/lucca_client.php';
 
-// Requête GET vers l'API Lucca pour récupérer les entités légales
-$result = lucca_request('GET', '/api/v3/legalEntities', ['fields' => 'id,name,code'], null, 20, false);
+// Note: L'API Lucca ne fournit pas d'endpoint direct pour lister les legal entities
+// On les récupère via les utilisateurs et on déduplique
+
+// Requête GET vers l'API Lucca pour récupérer les utilisateurs avec leur legalEntity
+$result = lucca_request('GET', '/api/v3/users', [
+    'fields' => 'id,name,legalEntity',
+    'limit' => 1000  // Récupérer un maximum d'utilisateurs pour avoir toutes les legal entities
+], null, 60, false);
 
 // Gestion des erreurs avec formatage amélioré
 if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || $result['code'] !== 200) {
     json_response($result['code'] ?: 500, lucca_format_error($result));
 }
 
+// Extraction et déduplication des legal entities
+$legal_entities = [];
+$seen_ids = [];
+
+if (isset($result['data']['data']['items']) && is_array($result['data']['data']['items'])) {
+    foreach ($result['data']['data']['items'] as $user) {
+        if (isset($user['legalEntity']) && is_array($user['legalEntity'])) {
+            $legal_entity_id = $user['legalEntity']['id'] ?? null;
+            
+            // Si on n'a pas encore vu cette legal entity, on l'ajoute
+            if ($legal_entity_id !== null && !isset($seen_ids[$legal_entity_id])) {
+                $seen_ids[$legal_entity_id] = true;
+                $legal_entities[] = [
+                    'id' => $legal_entity_id,
+                    'name' => $user['legalEntity']['name'] ?? null,
+                    'url' => $user['legalEntity']['url'] ?? null
+                ];
+            }
+        }
+    }
+}
+
+// Tri par ID pour un affichage cohérent
+usort($legal_entities, function($a, $b) {
+    return $a['id'] <=> $b['id'];
+});
+
 // Réponse finale
 json_response(200, [
     "success" => true,
-    "legal_entities" => $result['data']['data'] ?? []
+    "legal_entities" => $legal_entities,
+    "count" => count($legal_entities),
+    "note" => "Les legal entities sont récupérées via les utilisateurs car l'API Lucca ne fournit pas d'endpoint direct pour les lister"
 ]);
 

+ 80 - 1
api/request.txt

@@ -1 +1,80 @@
-curl.exe -X POST http://localhost:8000/create_user.php -H "Content-Type: application/json" -d "{\"firstName\":\"Marine\",\"lastName\":\"BONNIN\",\"login\":\"marine.bonnin@sipa-automobiles.fr\",\"mail\":\"marine.bonnin-sipa-automobiles.fr@factice.eu\",\"dtContractStart\":\"2021-09-20T00:00:00\",\"legalEntityId\":1,\"employeeNumber\":\"530140\",\"departmentId\":247,\"managerId\":313,\"birthDate\":null,\"cultureID\":1036,\"calendarId\":null,\"rolePrincipalId\":1,\"habilitedRoles\":[]}"
+POST http://localhost/api/user/user/POST_userV2.php
+Content-Type: application/json
+
+{
+    "firstName": "Jean",
+    "lastName": "Dupont",
+    "login": "jean.dupont@sipa-automobiles.fr",
+    "mail": "jean.dupont@sipa-automobiles.fr",
+    "dtContractStart": "2025-11-08T00:00:00",
+    "legalEntityId": 1,
+    "departmentId": 427,
+    "cultureID": 1036,
+    "rolePrincipalId": 55,
+    "employeeNumber": "999999",
+    "managerId": 585,
+    "birthDate": "1990-05-15T00:00:00",
+    "calendarId": 1,
+    "habilitedRoles": [
+        {"id": 59},
+        {"id": 63}
+    ],
+    "jobTitle": "Développeur Full Stack",
+    "gender": "Male",
+    "address": "123 rue de la Paix, 75001 Paris",
+    "personalEmail": "jean.dupont.perso@gmail.com",
+    "personalMobile": "+33612345678",
+    "professionalMobile": "+33687654321",
+    "allowsElectronicPayslip": true,
+    "bankName": "Banque Postale",
+    "iban": "FR0312739000302346383836C42",
+    "bic": "PSSTFRPPXXX",
+    "nationalityId": "FR",
+    "seniorityDate": "2025-11-08T00:00:00"
+}
+
+---
+EXPLICATION DES CHAMPS UTILISÉS:
+- departmentId: 427 (Vente VN MMA) - récupéré depuis get_departments.php
+- managerId: 585 (Thomas DUPOUY) - récupéré depuis GET_all_users.php
+- legalEntityId: 1 (valeur par défaut, à ajuster selon votre instance)
+- rolePrincipalId: 55 (valeur par défaut, à ajuster selon votre instance)
+- cultureID: 1036 (français France - LCID standard)
+- calendarId: 1 (valeur par défaut)
+
+POUR TESTER AVEC CURL:
+curl -X POST http://localhost/api/user/user/POST_userV2.php \
+  -H "Content-Type: application/json" \
+  -H "Authorization: Bearer VOTRE_TOKEN_LUCCA" \
+  -d '{
+    "firstName": "Jean",
+    "lastName": "Dupont",
+    "login": "jean.dupont.test@sipa-automobiles.fr",
+    "mail": "jean.dupont.test@sipa-automobiles.fr",
+    "dtContractStart": "2025-11-08T00:00:00",
+    "legalEntityId": 1,
+    "departmentId": 427,
+    "cultureID": 1036,
+    "rolePrincipalId": 55,
+    "employeeNumber": "999999",
+    "managerId": 585,
+    "birthDate": "1990-05-15T00:00:00",
+    "calendarId": 1,
+    "habilitedRoles": [{"id": 59}, {"id": 63}],
+    "jobTitle": "Développeur Full Stack",
+    "gender": "Male"
+  }'
+
+DÉPARTEMENTS DISPONIBLES (exemples):
+- 427: Vente VN MMA
+- 566: Vente VN HYUNDAI AN
+- 617: Vente VN CNBL Saint-Avit
+- 381: Atelier ETLT
+- 94: Atelier AN
+
+MANAGERS DISPONIBLES (exemples):
+- 585: Thomas DUPOUY
+- 1889: Aric ANTEBI
+- 347: Alain BARBET
+- 492: Romain GAROCHAU
+- 1425: Mathilde NACRY

+ 120 - 50
api/user/user/GET_user.php

@@ -1,11 +1,23 @@
 <?php
 /**
- * Endpoint pour récupérer un utilisateur Lucca par son username
+ * Endpoint pour récupérer un utilisateur Lucca par son username OU par son ID
  * 
- * Méthode : POST
- * Body JSON : {"username": "login_utilisateur", "limit": 10}
- * - username (obligatoire) : le login de l'utilisateur à rechercher
- * - limit (optionnel, défaut: 10) : nombre maximum de résultats à renvoyer
+ * Méthode : GET
+ * Query Parameters : 
+ *   - Option 1: ?username=login_utilisateur&limit=10
+ *   - Option 2: ?id=1424
+ * 
+ * Paramètres :
+ * - username (optionnel) : le login de l'utilisateur à rechercher
+ * - id (optionnel) : l'ID de l'utilisateur à rechercher
+ * - limit (optionnel, défaut: 10) : nombre maximum de résultats (seulement pour recherche par username)
+ * 
+ * Exemples :
+ * - GET_user.php?id=1424
+ * - GET_user.php?username=john.doe@example.com
+ * - GET_user.php?username=john.doe@example.com&limit=5
+ * 
+ * Note : username OU id doit être fourni (pas les deux)
  * Réponse : {"input": {...}, "lucca_user": {...}}
  */
 
@@ -22,57 +34,115 @@ function json_response(int $statusCode, array $payload): void {
 }
 
 // Charge le client API Lucca
-require_once __DIR__ . '/lucca_client.php';
+require_once __DIR__ . '/../../lucca_client.php';
 
-// Récupère le JSON en entrée
-$input = json_decode(file_get_contents("php://input"), true);
+// Récupère les paramètres depuis l'URL (query string)
+$input = [
+    'id' => $_GET['id'] ?? null,
+    'username' => $_GET['username'] ?? null,
+    'limit' => isset($_GET['limit']) ? (int)$_GET['limit'] : 10
+];
 
-// BOUCHON POUR TEST - À RETIRER EN PRODUCTION
-if (empty($input)) {
-    $input = ["username" => "marine.bonnin@sipa-automobiles.fr"];
+// Validation de l'entrée : il faut username OU id
+if (!isset($input["username"]) && !isset($input["id"])) {
+    json_response(400, [
+        "error" => "username ou id manquant",
+        "usage" => [
+            "by_id" => "GET_user.php?id=1424",
+            "by_username" => "GET_user.php?username=john.doe@example.com"
+        ]
+    ]);
 }
 
-// Validation de l'entrée
-if (!isset($input["username"])) {
-    json_response(400, ["error" => "username manquant"]);
+if (isset($input["username"]) && isset($input["id"])) {
+    json_response(400, [
+        "error" => "Fournir username OU id, pas les deux",
+        "received" => [
+            "username" => $input["username"],
+            "id" => $input["id"]
+        ]
+    ]);
 }
 
-$username = $input["username"];
-$limit = isset($input["limit"]) ? (int)$input["limit"] : 10; // Par défaut: 10 résultats
-
-// Requête GET vers l'API Lucca avec filtre par login
-// Documentation: https://developers.lucca.fr/api-reference/legacy/directory/list-users
-$result = lucca_request('GET', '/api/v3/users', [
-    'login' => $username,
-    'fields' => 'id,name,login,mail,dtContractStart,dtContractEnd,employeeNumber,department,manager,culture',
-    'limit' => $limit
-], null, 20, false); // debug désactivé - l'API Lucca ne supporte pas $debug sur /users
-
-// DEBUG: Afficher toutes les informations
-$debug_info = [
-    "url_construite" => rtrim(LUCCA_API_BASE, '/') . '/api/v3/users?login=' . urlencode($username) . '&fields=...&limit=' . $limit,
-    "username_recherche" => $username,
-    "curl_result" => $result
-];
-
-// ✅ Gestion des erreurs avec formatage amélioré
-if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || $result['code'] !== 200) {
-    json_response($result['code'] ?: 500, array_merge(
-        lucca_format_error($result),
-        ["debug" => $debug_info]
-    ));
+// ========================================
+// CAS 1 : Recherche par ID
+// ========================================
+if (isset($input["id"])) {
+    $userId = (int)$input["id"];
+    
+    // Requête GET vers l'API Lucca pour un utilisateur spécifique par son ID
+    // Documentation: https://developers.lucca.fr/api-reference/legacy/directory/get-user
+    $result = lucca_request('GET', '/api/v3/users/' . $userId, [
+        'fields' => 'id,name,login,mail,dtContractStart,dtContractEnd,employeeNumber,department,manager,culture'
+    ], null, 20, false);
+    
+    // DEBUG: Afficher toutes les informations
+    $debug_info = [
+        "url_construite" => rtrim(LUCCA_API_BASE, '/') . '/api/v3/users/' . $userId,
+        "user_id_recherche" => $userId,
+        "curl_result" => $result
+    ];
+    
+    // ✅ Gestion des erreurs avec formatage amélioré
+    if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || $result['code'] !== 200) {
+        json_response($result['code'] ?: 500, array_merge(
+            lucca_format_error($result),
+            ["debug" => $debug_info]
+        ));
+    }
+    
+    // Pour la recherche par ID, l'API retourne directement l'utilisateur
+    $user = isset($result['data']['data']) ? $result['data']['data'] : null;
+    
+    // Réponse finale
+    json_response(200, [
+        "input" => $input,
+        "lucca_user" => $user,
+        "search_type" => "by_id"
+    ]);
 }
 
-// L'API retourne directement les utilisateurs filtrés par login
-// On récupère le premier (et normalement unique) résultat
-$user = null;
-if (isset($result['data']['data']['items']) && is_array($result['data']['data']['items']) && count($result['data']['data']['items']) > 0) {
-    $user = $result['data']['data']['items'][0];
+// ========================================
+// CAS 2 : Recherche par username
+// ========================================
+if (isset($input["username"])) {
+    $username = $input["username"];
+    $limit = isset($input["limit"]) ? (int)$input["limit"] : 10; // Par défaut: 10 résultats
+    
+    // Requête GET vers l'API Lucca avec filtre par login
+    // Documentation: https://developers.lucca.fr/api-reference/legacy/directory/list-users
+    $result = lucca_request('GET', '/api/v3/users', [
+        'login' => $username,
+        'fields' => 'id,name,login,mail,dtContractStart,dtContractEnd,employeeNumber,department,manager,culture',
+        'limit' => $limit
+    ], null, 20, false); // debug désactivé - l'API Lucca ne supporte pas $debug sur /users
+    
+    // DEBUG: Afficher toutes les informations
+    $debug_info = [
+        "url_construite" => rtrim(LUCCA_API_BASE, '/') . '/api/v3/users?login=' . urlencode($username) . '&fields=...&limit=' . $limit,
+        "username_recherche" => $username,
+        "curl_result" => $result
+    ];
+    
+    // ✅ Gestion des erreurs avec formatage amélioré
+    if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || $result['code'] !== 200) {
+        json_response($result['code'] ?: 500, array_merge(
+            lucca_format_error($result),
+            ["debug" => $debug_info]
+        ));
+    }
+    
+    // L'API retourne directement les utilisateurs filtrés par login
+    // On récupère le premier (et normalement unique) résultat
+    $user = null;
+    if (isset($result['data']['data']['items']) && is_array($result['data']['data']['items']) && count($result['data']['data']['items']) > 0) {
+        $user = $result['data']['data']['items'][0];
+    }
+    
+    // Réponse finale
+    json_response(200, [
+        "input" => $input,
+        "lucca_user" => $user,
+        "search_type" => "by_username"
+    ]);
 }
-
-// Réponse finale
-json_response(200, [
-    "input" => $input,
-    "lucca_user" => $user
-]);
-

+ 484 - 0
api/user/user/POST_userV2.php

@@ -0,0 +1,484 @@
+<?php
+/**
+ * Endpoint pour créer un utilisateur Lucca - Version 2
+ * Implémentation stricte selon la documentation officielle Lucca API
+ * Documentation: https://developers.lucca.fr/api-reference/legacy/directory/create-a-new-user
+ * 
+ * Méthode : POST /api/v3/users
+ * 
+ * Champs REQUIS :
+ * - firstName (string, min 1) : Prénom de l'employé
+ * - lastName (string, min 1) : Nom de l'employé
+ * - login (string, min 1) : Identifiant unique de l'employé
+ * - mail (string, min 1) : Adresse email professionnelle
+ * - dtContractStart (date-time) : Premier jour d'emploi
+ * - legalEntityId (integer >= 1) : Établissement où travaille l'employé
+ * - employeeNumber (string|null, min 1) : Matricule (unique par établissement)
+ * - departmentId (integer >= 1) : Département de l'employé
+ * - managerId (integer|null) : ID du manager (null = pas de manager)
+ * - birthDate (date-time|null) : Date de naissance
+ * - cultureID (integer 1025-58380) : Code langue (LCID) ex: 1036 pour FR
+ * - calendarId (integer|null >= 1) : Calendrier des jours fériés
+ * - rolePrincipalId (integer >= 1) : Rôle principal de l'utilisateur
+ * - habilitedRoles (array) : Liste des rôles secondaires [{id: int}, ...]
+ * 
+ * Champs OPTIONNELS :
+ * - dtContractEnd (date-time|null) : Dernier jour d'emploi
+ * - cspId (integer|null >= 1) : Catégorie socio-professionnelle
+ * - nationalityId (string|null, 2 chars) : Code pays ISO 3166-1 alpha-2
+ * - seniorityDate (date-time|null) : Date d'ancienneté
+ * - insuranceNumber (string|null) : Numéro de sécurité sociale
+ * - address (string|null) : Adresse personnelle
+ * - directLine (string|null) : Téléphone fixe professionnel
+ * - jobTitle (string|null, min 1) : Intitulé du poste
+ * - gender (enum: Undefined|Male|Female|Misc) : Genre déclaré
+ * - personalEmail (string|null) : Email personnel
+ * - personalMobile (string|null) : Mobile personnel
+ * - professionalMobile (string|null) : Mobile professionnel
+ * - allowsElectronicPayslip (boolean|null) : Accepte bulletin de paie électronique
+ * - quote (string|null) : Citation personnelle
+ * - personalCard (string|null) : Carte bancaire personnelle (Expenses)
+ * - corporateCard (string|null) : Carte bancaire corporate (Expenses)
+ * - bankName (string|null) : Nom de la banque
+ * - rib (string|null) : RIB
+ * - iban (string|null) : IBAN
+ * - bic (string|null) : Code SWIFT BIC
+ * - frenchCarTaxHorsePower (integer|null) : Chevaux fiscaux voiture
+ * - frenchMotocyclesTaxHorsePower (integer|null) : Chevaux fiscaux moto
+ * - unitSellPrice (number|null) : Prix de vente unitaire (legacy)
+ * - modifiedAt (date-time) : Date de dernière modification
+ * - picture (object|null) : Photo de profil {id: uuid}
+ * - userWorkCycles (array) : Cycles de travail
+ * - manager2Id (integer|null) : Manager secondaire
+ * - profile_figgo (object|null) : Profil de congés Lucca Absences
+ * - fullTimeEquivalent (object|null) : ETP dans Lucca Compensation
+ * - theoreticalRemuneration (object|null) : Rémunération théorique
+ * 
+ * Réponse 200 : {"data": {...user complet...}}
+ * Réponse 400 : Erreur de validation
+ * Réponse 401 : Non autorisé
+ * Réponse 403 : Permissions insuffisantes
+ * Réponse 409 : Conflit (login/email déjà existant)
+ * Réponse 500 : Erreur serveur
+ */
+
+// Activation du débogage
+ini_set('display_errors', 1);
+ini_set('display_startup_errors', 1);
+error_reporting(E_ALL);
+
+// ⚙️ CONFIGURATION - Activer/désactiver le bouchon de test
+define('USE_TEST_DATA', true); // Mettre à true pour utiliser les données de test
+
+/**
+ * Envoie une réponse JSON avec le code HTTP approprié
+ */
+function json_response(int $statusCode, array $payload): void {
+    http_response_code($statusCode);
+    header('Content-Type: application/json; charset=utf-8');
+    echo json_encode($payload, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
+    exit;
+}
+
+// Charge le client API Lucca
+require_once __DIR__ . '/../../lucca_client.php';
+
+// Récupère le JSON en entrée
+$input = json_decode(file_get_contents("php://input"), true);
+
+// BOUCHON POUR TEST
+if (USE_TEST_DATA) {
+    $input = array (
+  'firstName' => 'Jean',
+  'lastName' => 'Dupont',
+  'login' => 'test.user.1762621351@sipa-automobiles.fr',
+  'mail' => 'test.user.1762621351@sipa-automobiles.fr',
+  'dtContractStart' => '2025-11-09T17:02:31',
+  'legalEntityId' => 1,
+  'departmentId' => 2,
+  'cultureID' => 1036,
+  'rolePrincipalId' => 4,
+  'employeeNumber' => 'TEST1762621351',
+  'managerId' => 1919,
+  'birthDate' => '1990-05-15T00:00:00',
+  'calendarId' => NULL,
+  'habilitedRoles' => 
+  array (
+    0 => 
+    array (
+      'id' => 3,
+    ),
+  ),
+  'jobTitle' => 'Développeur Full Stack',
+  'gender' => 'Male',
+  'address' => '123 rue de la Paix, 75001 Paris',
+  'personalEmail' => 'jean.dupont.perso@gmail.com',
+  'personalMobile' => '+33612345678',
+  'professionalMobile' => '+33687654321',
+  'allowsElectronicPayslip' => true,
+  'bankName' => 'Banque Postale',
+  'iban' => 'FR0312739000302346383836C42',
+  'bic' => 'PSSTFRPPXXX',
+  'nationalityId' => 'FR',
+  'seniorityDate' => '2025-11-09T17:02:31',
+);
+}
+
+// Vérification que le JSON est valide
+if (!is_array($input)) {
+    json_response(400, [
+        "error" => "Invalid JSON",
+        "message" => "Request body must contain valid JSON",
+        "status" => 400
+    ]);
+}
+
+// ==========================================
+// VALIDATION DES CHAMPS REQUIS
+// ==========================================
+
+// Champs obligatoires non-nullable
+$required_non_null_fields = [
+    'firstName' => ['type' => 'string', 'min_length' => 1],
+    'lastName' => ['type' => 'string', 'min_length' => 1],
+    'login' => ['type' => 'string', 'min_length' => 1],
+    'mail' => ['type' => 'string', 'min_length' => 1],
+    'dtContractStart' => ['type' => 'string'], // date-time
+    'legalEntityId' => ['type' => 'integer', 'min' => 1],
+    'departmentId' => ['type' => 'integer', 'min' => 1],
+    'cultureID' => ['type' => 'integer', 'min' => 1025, 'max' => 58380],
+    'rolePrincipalId' => ['type' => 'integer', 'min' => 1],
+];
+
+// Champs obligatoires mais nullable
+$required_nullable_fields = [
+    'employeeNumber' => ['type' => 'string|null', 'min_length' => 1],
+    'managerId' => ['type' => 'integer|null'],
+    'birthDate' => ['type' => 'string|null'], // date-time
+    'calendarId' => ['type' => 'integer|null', 'min' => 1],
+    'habilitedRoles' => ['type' => 'array'],
+];
+
+$validation_errors = [];
+
+// Validation des champs non-null
+foreach ($required_non_null_fields as $field => $rules) {
+    if (!array_key_exists($field, $input)) {
+        $validation_errors[] = "Missing required field: $field";
+        continue;
+    }
+    
+    $value = $input[$field];
+    
+    // Vérifier que ce n'est pas null
+    if ($value === null) {
+        $validation_errors[] = "Field '$field' cannot be null";
+        continue;
+    }
+    
+    // Vérifier le type
+    if ($rules['type'] === 'string' && !is_string($value)) {
+        $validation_errors[] = "Field '$field' must be a string";
+    } elseif ($rules['type'] === 'integer' && !is_int($value)) {
+        $validation_errors[] = "Field '$field' must be an integer";
+    }
+    
+    // Vérifier la longueur minimale pour les strings
+    if (isset($rules['min_length']) && is_string($value) && strlen($value) < $rules['min_length']) {
+        $validation_errors[] = "Field '$field' minimum length is {$rules['min_length']}";
+    }
+    
+    // Vérifier les valeurs min/max pour les integers
+    if (isset($rules['min']) && is_int($value) && $value < $rules['min']) {
+        $validation_errors[] = "Field '$field' must be >= {$rules['min']}";
+    }
+    if (isset($rules['max']) && is_int($value) && $value > $rules['max']) {
+        $validation_errors[] = "Field '$field' must be <= {$rules['max']}";
+    }
+}
+
+// Validation des champs nullable
+foreach ($required_nullable_fields as $field => $rules) {
+    if (!array_key_exists($field, $input)) {
+        $validation_errors[] = "Missing required field: $field (can be null)";
+        continue;
+    }
+    
+    $value = $input[$field];
+    
+    // Si null, c'est OK pour ces champs
+    if ($value === null) {
+        continue;
+    }
+    
+    // Vérifier le type si non-null
+    if ($rules['type'] === 'string|null' && !is_string($value)) {
+        $validation_errors[] = "Field '$field' must be a string or null";
+    } elseif ($rules['type'] === 'integer|null' && !is_int($value)) {
+        $validation_errors[] = "Field '$field' must be an integer or null";
+    } elseif ($rules['type'] === 'array' && !is_array($value)) {
+        $validation_errors[] = "Field '$field' must be an array";
+    }
+    
+    // Vérifier la longueur minimale pour les strings
+    if (isset($rules['min_length']) && is_string($value) && strlen($value) < $rules['min_length']) {
+        $validation_errors[] = "Field '$field' minimum length is {$rules['min_length']}";
+    }
+    
+    // Vérifier les valeurs min/max pour les integers
+    if (isset($rules['min']) && is_int($value) && $value < $rules['min']) {
+        $validation_errors[] = "Field '$field' must be >= {$rules['min']}";
+    }
+}
+
+// Validation spéciale pour habilitedRoles
+if (isset($input['habilitedRoles'])) {
+    if (!is_array($input['habilitedRoles'])) {
+        $validation_errors[] = "Field 'habilitedRoles' must be an array";
+    } else {
+        foreach ($input['habilitedRoles'] as $idx => $role) {
+            if (!is_array($role)) {
+                $validation_errors[] = "habilitedRoles[$idx] must be an object";
+            } elseif (!isset($role['id'])) {
+                $validation_errors[] = "habilitedRoles[$idx] must have an 'id' property";
+            } elseif (!is_int($role['id'])) {
+                $validation_errors[] = "habilitedRoles[$idx].id must be an integer";
+            }
+        }
+    }
+}
+
+// Validation optionnelle pour gender
+if (isset($input['gender'])) {
+    $valid_genders = ['Undefined', 'Male', 'Female', 'Misc'];
+    if (!in_array($input['gender'], $valid_genders, true)) {
+        $validation_errors[] = "Field 'gender' must be one of: " . implode(', ', $valid_genders);
+    }
+}
+
+// Validation optionnelle pour nationalityId
+if (isset($input['nationalityId']) && $input['nationalityId'] !== null) {
+    if (!is_string($input['nationalityId']) || strlen($input['nationalityId']) !== 2) {
+        $validation_errors[] = "Field 'nationalityId' must be a 2-character ISO 3166-1 alpha-2 country code";
+    }
+}
+
+// Si des erreurs de validation
+if (!empty($validation_errors)) {
+    json_response(400, [
+        "error" => "Validation failed",
+        "message" => "One or more required fields are missing or invalid",
+        "validation_errors" => $validation_errors,
+        "status" => 400
+    ]);
+}
+
+// ==========================================
+// VÉRIFICATION DES DOUBLONS
+// ==========================================
+
+// Vérification par login
+$check_login_result = lucca_request('GET', '/api/v3/users', [
+    'login' => $input['login'],
+    'fields' => 'id,name,login,mail',
+    'limit' => 1
+], null, 60, false);
+
+// Erreur de connexion
+if (!empty($check_login_result['error']) || $check_login_result['code'] === 0) {
+    json_response(503, [
+        "error" => "Service unavailable",
+        "message" => "Unable to verify if user already exists",
+        "details" => $check_login_result['error'] ?? "No response from server",
+        "status" => 503
+    ]);
+}
+
+// Utilisateur avec ce login existe déjà
+if ($check_login_result['code'] === 200 && 
+    isset($check_login_result['data']['data']['items']) && 
+    is_array($check_login_result['data']['data']['items']) && 
+    count($check_login_result['data']['data']['items']) > 0) {
+    
+    $existing_user = $check_login_result['data']['data']['items'][0];
+    json_response(409, [
+        "error" => "Conflict",
+        "message" => "A user with this login already exists",
+        "existing_user" => [
+            "id" => $existing_user['id'] ?? null,
+            "name" => $existing_user['name'] ?? null,
+            "login" => $existing_user['login'] ?? null,
+            "mail" => $existing_user['mail'] ?? null
+        ],
+        "status" => 409
+    ]);
+}
+
+// Vérification par email (si différent du login)
+if ($input['mail'] !== $input['login']) {
+    $check_mail_result = lucca_request('GET', '/api/v3/users', [
+        'mail' => $input['mail'],
+        'fields' => 'id,name,login,mail',
+        'limit' => 1
+    ], null, 60, false);
+    
+    // Erreur de connexion
+    if (!empty($check_mail_result['error']) || $check_mail_result['code'] === 0) {
+        json_response(503, [
+            "error" => "Service unavailable",
+            "message" => "Unable to verify if user email already exists",
+            "details" => $check_mail_result['error'] ?? "No response from server",
+            "status" => 503
+        ]);
+    }
+    
+    // Utilisateur avec cet email existe déjà
+    if ($check_mail_result['code'] === 200 && 
+        isset($check_mail_result['data']['data']['items']) && 
+        is_array($check_mail_result['data']['data']['items']) && 
+        count($check_mail_result['data']['data']['items']) > 0) {
+        
+        $existing_user = $check_mail_result['data']['data']['items'][0];
+        json_response(409, [
+            "error" => "Conflict",
+            "message" => "A user with this email already exists",
+            "existing_user" => [
+                "id" => $existing_user['id'] ?? null,
+                "name" => $existing_user['name'] ?? null,
+                "login" => $existing_user['login'] ?? null,
+                "mail" => $existing_user['mail'] ?? null
+            ],
+            "status" => 409
+        ]);
+    }
+}
+
+// ==========================================
+// PRÉPARATION DU BODY DE LA REQUÊTE
+// ==========================================
+
+$body = [];
+
+// Champs requis
+$all_required_fields = array_merge(
+    array_keys($required_non_null_fields),
+    array_keys($required_nullable_fields)
+);
+
+foreach ($all_required_fields as $field) {
+    $body[$field] = $input[$field];
+}
+
+// Champs optionnels selon la documentation Lucca
+$optional_fields = [
+    'dtContractEnd', 'manager', 'cspId', 'nationalityId', 'seniorityDate', 
+    'insuranceNumber', 'calendar', 'userWorkCycles', 'picture', 'rolePrincipal',
+    'address', 'directLine', 'jobTitle', 'gender', 'personalEmail', 
+    'personalMobile', 'professionalMobile', 'allowsElectronicPayslip', 'quote',
+    'personalCard', 'corporateCard', 'bankName', 'rib', 'iban', 'bic',
+    'frenchCarTaxHorsePower', 'frenchMotocyclesTaxHorsePower', 'unitSellPrice',
+    'modifiedAt', 'profile_figgo', 'fullTimeEquivalent', 'theoreticalRemuneration',
+    'manager2Id', 'extendedData', 'applicationData'
+];
+
+foreach ($optional_fields as $field) {
+    if (array_key_exists($field, $input)) {
+        $body[$field] = $input[$field];
+    }
+}
+
+// Champs d'axes dynamiques (userAxisValues_X)
+foreach ($input as $key => $value) {
+    if (preg_match('/^userAxisValues_\d+$/', $key)) {
+        $body[$key] = $value;
+    }
+}
+
+// ==========================================
+// REQUÊTE POST VERS LUCCA
+// ==========================================
+
+// Paramètres query (support du champ ?fields)
+$query_params = [];
+if (isset($_GET['fields'])) {
+    $query_params['fields'] = $_GET['fields'];
+}
+
+$result = lucca_request('POST', '/api/v3/users', $query_params, $body, 60, false);
+
+// ==========================================
+// GESTION DES ERREURS
+// ==========================================
+
+if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || 
+    ($result['code'] !== 200 && $result['code'] !== 201)) {
+    
+    $error_response = [
+        "error" => "Error creating user",
+        "status" => $result['code']
+    ];
+    
+    // Message d'erreur principal
+    if (!empty($result['lucca_error'])) {
+        $error_response['message'] = $result['lucca_error'];
+    } elseif (!empty($result['error_message'])) {
+        $error_response['message'] = $result['error_message'];
+    } elseif (!empty($result['error'])) {
+        $error_response['message'] = $result['error'];
+    } elseif (isset($result['data']['title'])) {
+        $error_response['message'] = $result['data']['title'];
+    } else {
+        $error_response['message'] = "Unknown error occurred";
+    }
+    
+    // Détails de la réponse Lucca
+    if (!empty($result['data'])) {
+        $error_response['lucca_response'] = $result['data'];
+    }
+    
+    // Erreur 400 - Validation
+    if ($result['code'] === 400) {
+        $error_response['type'] = "Validation error";
+        $error_response['suggestion'] = "Check that all required fields are valid and properly formatted";
+    }
+    
+    // Erreur 401 - Non autorisé
+    if ($result['code'] === 401) {
+        $error_response['type'] = "Unauthorized";
+        $error_response['suggestion'] = "Check your API token in the Authorization header";
+    }
+    
+    // Erreur 403 - Permissions insuffisantes
+    if ($result['code'] === 403) {
+        $error_response['type'] = "Forbidden";
+        $error_response['suggestion'] = "Your API token does not have permission to create users. Check API token permissions in Lucca settings.";
+    }
+    
+    // Erreur 500 - Erreur serveur
+    if ($result['code'] === 500) {
+        $error_response['type'] = "Internal server error";
+        $error_response['suggestion'] = "This might indicate invalid foreign key IDs. Verify legalEntityId, departmentId, rolePrincipalId, calendarId, and managerId exist.";
+    }
+    
+    // Informations de debug
+    if (!empty($result['curl_info'])) {
+        $error_response['debug'] = [
+            'url' => $result['curl_info']['url'] ?? null,
+            'total_time' => $result['curl_info']['total_time'] ?? null
+        ];
+    }
+    
+    json_response($result['code'] ?: 500, $error_response);
+}
+
+// ==========================================
+// SUCCÈS - RÉPONSE SELON LA DOC LUCCA
+// ==========================================
+
+// Réponse au format exact de la documentation Lucca
+$response = [
+    "data" => $result['data']['data'] ?? $result['data'] ?? []
+];
+
+json_response(200, $response);
+

+ 488 - 0
api/user/user/POST_userV2.php.backup

@@ -0,0 +1,488 @@
+<?php
+/**
+ * Endpoint pour créer un utilisateur Lucca - Version 2
+ * Implémentation stricte selon la documentation officielle Lucca API
+ * Documentation: https://developers.lucca.fr/api-reference/legacy/directory/create-a-new-user
+ * 
+ * Méthode : POST /api/v3/users
+ * 
+ * Champs REQUIS :
+ * - firstName (string, min 1) : Prénom de l'employé
+ * - lastName (string, min 1) : Nom de l'employé
+ * - login (string, min 1) : Identifiant unique de l'employé
+ * - mail (string, min 1) : Adresse email professionnelle
+ * - dtContractStart (date-time) : Premier jour d'emploi
+ * - legalEntityId (integer >= 1) : Établissement où travaille l'employé
+ * - employeeNumber (string|null, min 1) : Matricule (unique par établissement)
+ * - departmentId (integer >= 1) : Département de l'employé
+ * - managerId (integer|null) : ID du manager (null = pas de manager)
+ * - birthDate (date-time|null) : Date de naissance
+ * - cultureID (integer 1025-58380) : Code langue (LCID) ex: 1036 pour FR
+ * - calendarId (integer|null >= 1) : Calendrier des jours fériés
+ * - rolePrincipalId (integer >= 1) : Rôle principal de l'utilisateur
+ * - habilitedRoles (array) : Liste des rôles secondaires [{id: int}, ...]
+ * 
+ * Champs OPTIONNELS :
+ * - dtContractEnd (date-time|null) : Dernier jour d'emploi
+ * - cspId (integer|null >= 1) : Catégorie socio-professionnelle
+ * - nationalityId (string|null, 2 chars) : Code pays ISO 3166-1 alpha-2
+ * - seniorityDate (date-time|null) : Date d'ancienneté
+ * - insuranceNumber (string|null) : Numéro de sécurité sociale
+ * - address (string|null) : Adresse personnelle
+ * - directLine (string|null) : Téléphone fixe professionnel
+ * - jobTitle (string|null, min 1) : Intitulé du poste
+ * - gender (enum: Undefined|Male|Female|Misc) : Genre déclaré
+ * - personalEmail (string|null) : Email personnel
+ * - personalMobile (string|null) : Mobile personnel
+ * - professionalMobile (string|null) : Mobile professionnel
+ * - allowsElectronicPayslip (boolean|null) : Accepte bulletin de paie électronique
+ * - quote (string|null) : Citation personnelle
+ * - personalCard (string|null) : Carte bancaire personnelle (Expenses)
+ * - corporateCard (string|null) : Carte bancaire corporate (Expenses)
+ * - bankName (string|null) : Nom de la banque
+ * - rib (string|null) : RIB
+ * - iban (string|null) : IBAN
+ * - bic (string|null) : Code SWIFT BIC
+ * - frenchCarTaxHorsePower (integer|null) : Chevaux fiscaux voiture
+ * - frenchMotocyclesTaxHorsePower (integer|null) : Chevaux fiscaux moto
+ * - unitSellPrice (number|null) : Prix de vente unitaire (legacy)
+ * - modifiedAt (date-time) : Date de dernière modification
+ * - picture (object|null) : Photo de profil {id: uuid}
+ * - userWorkCycles (array) : Cycles de travail
+ * - manager2Id (integer|null) : Manager secondaire
+ * - profile_figgo (object|null) : Profil de congés Lucca Absences
+ * - fullTimeEquivalent (object|null) : ETP dans Lucca Compensation
+ * - theoreticalRemuneration (object|null) : Rémunération théorique
+ * 
+ * Réponse 200 : {"data": {...user complet...}}
+ * Réponse 400 : Erreur de validation
+ * Réponse 401 : Non autorisé
+ * Réponse 403 : Permissions insuffisantes
+ * Réponse 409 : Conflit (login/email déjà existant)
+ * Réponse 500 : Erreur serveur
+ */
+
+// Activation du débogage
+ini_set('display_errors', 1);
+ini_set('display_startup_errors', 1);
+error_reporting(E_ALL);
+
+// ⚙️ CONFIGURATION - Activer/désactiver le bouchon de test
+define('USE_TEST_DATA', false); // Mettre à true pour utiliser les données de test
+
+/**
+ * Envoie une réponse JSON avec le code HTTP approprié
+ */
+function json_response(int $statusCode, array $payload): void {
+    http_response_code($statusCode);
+    header('Content-Type: application/json; charset=utf-8');
+    echo json_encode($payload, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
+    exit;
+}
+
+// Charge le client API Lucca
+require_once __DIR__ . '/../../lucca_client.php';
+
+// Récupère le JSON en entrée
+$input = json_decode(file_get_contents("php://input"), true);
+
+// BOUCHON POUR TEST
+if (USE_TEST_DATA) {
+    $input = [
+        // Champs REQUIS (non-nullable)
+        "firstName" => "John",
+        "lastName" => "Doe",
+        "login" => "john.doe@example.com",
+        "mail" => "john.doe@example.com",
+        "dtContractStart" => "2014-09-01T00:00:00",
+        "legalEntityId" => 1,
+        "departmentId" => 13,
+        "cultureID" => 1036,
+        "rolePrincipalId" => 55,
+        
+        // Champs REQUIS (nullable)
+        "employeeNumber" => "00057",
+        "managerId" => 383,
+        "birthDate" => "1989-12-22T00:00:00",
+        "calendarId" => 1,
+        "habilitedRoles" => [
+            ["id" => 59],
+            ["id" => 63]
+        ],
+        
+        // Champs OPTIONNELS (exemples)
+        "dtContractEnd" => null,
+        "jobTitle" => "Développeur",
+        "gender" => "Male",
+        "address" => "123 rue Example, 75001 Paris",
+        "personalEmail" => "john.personal@gmail.com",
+        "personalMobile" => "+33612345678",
+        "professionalMobile" => "+33612345679",
+        "allowsElectronicPayslip" => true,
+        "bankName" => "Banque Postale",
+        "iban" => "FR0312739000302346383836C42",
+        "bic" => "PSSTFRPPXXX",
+        "frenchCarTaxHorsePower" => 5,
+        "nationalityId" => "FR",
+        "seniorityDate" => "2014-09-01T00:00:00"
+    ];
+}
+
+// Vérification que le JSON est valide
+if (!is_array($input)) {
+    json_response(400, [
+        "error" => "Invalid JSON",
+        "message" => "Request body must contain valid JSON",
+        "status" => 400
+    ]);
+}
+
+// ==========================================
+// VALIDATION DES CHAMPS REQUIS
+// ==========================================
+
+// Champs obligatoires non-nullable
+$required_non_null_fields = [
+    'firstName' => ['type' => 'string', 'min_length' => 1],
+    'lastName' => ['type' => 'string', 'min_length' => 1],
+    'login' => ['type' => 'string', 'min_length' => 1],
+    'mail' => ['type' => 'string', 'min_length' => 1],
+    'dtContractStart' => ['type' => 'string'], // date-time
+    'legalEntityId' => ['type' => 'integer', 'min' => 1],
+    'departmentId' => ['type' => 'integer', 'min' => 1],
+    'cultureID' => ['type' => 'integer', 'min' => 1025, 'max' => 58380],
+    'rolePrincipalId' => ['type' => 'integer', 'min' => 1],
+];
+
+// Champs obligatoires mais nullable
+$required_nullable_fields = [
+    'employeeNumber' => ['type' => 'string|null', 'min_length' => 1],
+    'managerId' => ['type' => 'integer|null'],
+    'birthDate' => ['type' => 'string|null'], // date-time
+    'calendarId' => ['type' => 'integer|null', 'min' => 1],
+    'habilitedRoles' => ['type' => 'array'],
+];
+
+$validation_errors = [];
+
+// Validation des champs non-null
+foreach ($required_non_null_fields as $field => $rules) {
+    if (!array_key_exists($field, $input)) {
+        $validation_errors[] = "Missing required field: $field";
+        continue;
+    }
+    
+    $value = $input[$field];
+    
+    // Vérifier que ce n'est pas null
+    if ($value === null) {
+        $validation_errors[] = "Field '$field' cannot be null";
+        continue;
+    }
+    
+    // Vérifier le type
+    if ($rules['type'] === 'string' && !is_string($value)) {
+        $validation_errors[] = "Field '$field' must be a string";
+    } elseif ($rules['type'] === 'integer' && !is_int($value)) {
+        $validation_errors[] = "Field '$field' must be an integer";
+    }
+    
+    // Vérifier la longueur minimale pour les strings
+    if (isset($rules['min_length']) && is_string($value) && strlen($value) < $rules['min_length']) {
+        $validation_errors[] = "Field '$field' minimum length is {$rules['min_length']}";
+    }
+    
+    // Vérifier les valeurs min/max pour les integers
+    if (isset($rules['min']) && is_int($value) && $value < $rules['min']) {
+        $validation_errors[] = "Field '$field' must be >= {$rules['min']}";
+    }
+    if (isset($rules['max']) && is_int($value) && $value > $rules['max']) {
+        $validation_errors[] = "Field '$field' must be <= {$rules['max']}";
+    }
+}
+
+// Validation des champs nullable
+foreach ($required_nullable_fields as $field => $rules) {
+    if (!array_key_exists($field, $input)) {
+        $validation_errors[] = "Missing required field: $field (can be null)";
+        continue;
+    }
+    
+    $value = $input[$field];
+    
+    // Si null, c'est OK pour ces champs
+    if ($value === null) {
+        continue;
+    }
+    
+    // Vérifier le type si non-null
+    if ($rules['type'] === 'string|null' && !is_string($value)) {
+        $validation_errors[] = "Field '$field' must be a string or null";
+    } elseif ($rules['type'] === 'integer|null' && !is_int($value)) {
+        $validation_errors[] = "Field '$field' must be an integer or null";
+    } elseif ($rules['type'] === 'array' && !is_array($value)) {
+        $validation_errors[] = "Field '$field' must be an array";
+    }
+    
+    // Vérifier la longueur minimale pour les strings
+    if (isset($rules['min_length']) && is_string($value) && strlen($value) < $rules['min_length']) {
+        $validation_errors[] = "Field '$field' minimum length is {$rules['min_length']}";
+    }
+    
+    // Vérifier les valeurs min/max pour les integers
+    if (isset($rules['min']) && is_int($value) && $value < $rules['min']) {
+        $validation_errors[] = "Field '$field' must be >= {$rules['min']}";
+    }
+}
+
+// Validation spéciale pour habilitedRoles
+if (isset($input['habilitedRoles'])) {
+    if (!is_array($input['habilitedRoles'])) {
+        $validation_errors[] = "Field 'habilitedRoles' must be an array";
+    } else {
+        foreach ($input['habilitedRoles'] as $idx => $role) {
+            if (!is_array($role)) {
+                $validation_errors[] = "habilitedRoles[$idx] must be an object";
+            } elseif (!isset($role['id'])) {
+                $validation_errors[] = "habilitedRoles[$idx] must have an 'id' property";
+            } elseif (!is_int($role['id'])) {
+                $validation_errors[] = "habilitedRoles[$idx].id must be an integer";
+            }
+        }
+    }
+}
+
+// Validation optionnelle pour gender
+if (isset($input['gender'])) {
+    $valid_genders = ['Undefined', 'Male', 'Female', 'Misc'];
+    if (!in_array($input['gender'], $valid_genders, true)) {
+        $validation_errors[] = "Field 'gender' must be one of: " . implode(', ', $valid_genders);
+    }
+}
+
+// Validation optionnelle pour nationalityId
+if (isset($input['nationalityId']) && $input['nationalityId'] !== null) {
+    if (!is_string($input['nationalityId']) || strlen($input['nationalityId']) !== 2) {
+        $validation_errors[] = "Field 'nationalityId' must be a 2-character ISO 3166-1 alpha-2 country code";
+    }
+}
+
+// Si des erreurs de validation
+if (!empty($validation_errors)) {
+    json_response(400, [
+        "error" => "Validation failed",
+        "message" => "One or more required fields are missing or invalid",
+        "validation_errors" => $validation_errors,
+        "status" => 400
+    ]);
+}
+
+// ==========================================
+// VÉRIFICATION DES DOUBLONS
+// ==========================================
+
+// Vérification par login
+$check_login_result = lucca_request('GET', '/api/v3/users', [
+    'login' => $input['login'],
+    'fields' => 'id,name,login,mail',
+    'limit' => 1
+], null, 60, false);
+
+// Erreur de connexion
+if (!empty($check_login_result['error']) || $check_login_result['code'] === 0) {
+    json_response(503, [
+        "error" => "Service unavailable",
+        "message" => "Unable to verify if user already exists",
+        "details" => $check_login_result['error'] ?? "No response from server",
+        "status" => 503
+    ]);
+}
+
+// Utilisateur avec ce login existe déjà
+if ($check_login_result['code'] === 200 && 
+    isset($check_login_result['data']['data']['items']) && 
+    is_array($check_login_result['data']['data']['items']) && 
+    count($check_login_result['data']['data']['items']) > 0) {
+    
+    $existing_user = $check_login_result['data']['data']['items'][0];
+    json_response(409, [
+        "error" => "Conflict",
+        "message" => "A user with this login already exists",
+        "existing_user" => [
+            "id" => $existing_user['id'] ?? null,
+            "name" => $existing_user['name'] ?? null,
+            "login" => $existing_user['login'] ?? null,
+            "mail" => $existing_user['mail'] ?? null
+        ],
+        "status" => 409
+    ]);
+}
+
+// Vérification par email (si différent du login)
+if ($input['mail'] !== $input['login']) {
+    $check_mail_result = lucca_request('GET', '/api/v3/users', [
+        'mail' => $input['mail'],
+        'fields' => 'id,name,login,mail',
+        'limit' => 1
+    ], null, 60, false);
+    
+    // Erreur de connexion
+    if (!empty($check_mail_result['error']) || $check_mail_result['code'] === 0) {
+        json_response(503, [
+            "error" => "Service unavailable",
+            "message" => "Unable to verify if user email already exists",
+            "details" => $check_mail_result['error'] ?? "No response from server",
+            "status" => 503
+        ]);
+    }
+    
+    // Utilisateur avec cet email existe déjà
+    if ($check_mail_result['code'] === 200 && 
+        isset($check_mail_result['data']['data']['items']) && 
+        is_array($check_mail_result['data']['data']['items']) && 
+        count($check_mail_result['data']['data']['items']) > 0) {
+        
+        $existing_user = $check_mail_result['data']['data']['items'][0];
+        json_response(409, [
+            "error" => "Conflict",
+            "message" => "A user with this email already exists",
+            "existing_user" => [
+                "id" => $existing_user['id'] ?? null,
+                "name" => $existing_user['name'] ?? null,
+                "login" => $existing_user['login'] ?? null,
+                "mail" => $existing_user['mail'] ?? null
+            ],
+            "status" => 409
+        ]);
+    }
+}
+
+// ==========================================
+// PRÉPARATION DU BODY DE LA REQUÊTE
+// ==========================================
+
+$body = [];
+
+// Champs requis
+$all_required_fields = array_merge(
+    array_keys($required_non_null_fields),
+    array_keys($required_nullable_fields)
+);
+
+foreach ($all_required_fields as $field) {
+    $body[$field] = $input[$field];
+}
+
+// Champs optionnels selon la documentation Lucca
+$optional_fields = [
+    'dtContractEnd', 'manager', 'cspId', 'nationalityId', 'seniorityDate', 
+    'insuranceNumber', 'calendar', 'userWorkCycles', 'picture', 'rolePrincipal',
+    'address', 'directLine', 'jobTitle', 'gender', 'personalEmail', 
+    'personalMobile', 'professionalMobile', 'allowsElectronicPayslip', 'quote',
+    'personalCard', 'corporateCard', 'bankName', 'rib', 'iban', 'bic',
+    'frenchCarTaxHorsePower', 'frenchMotocyclesTaxHorsePower', 'unitSellPrice',
+    'modifiedAt', 'profile_figgo', 'fullTimeEquivalent', 'theoreticalRemuneration',
+    'manager2Id', 'extendedData', 'applicationData'
+];
+
+foreach ($optional_fields as $field) {
+    if (array_key_exists($field, $input)) {
+        $body[$field] = $input[$field];
+    }
+}
+
+// Champs d'axes dynamiques (userAxisValues_X)
+foreach ($input as $key => $value) {
+    if (preg_match('/^userAxisValues_\d+$/', $key)) {
+        $body[$key] = $value;
+    }
+}
+
+// ==========================================
+// REQUÊTE POST VERS LUCCA
+// ==========================================
+
+// Paramètres query (support du champ ?fields)
+$query_params = [];
+if (isset($_GET['fields'])) {
+    $query_params['fields'] = $_GET['fields'];
+}
+
+$result = lucca_request('POST', '/api/v3/users', $query_params, $body, 60, false);
+
+// ==========================================
+// GESTION DES ERREURS
+// ==========================================
+
+if (!empty($result['error']) || !empty($result['lucca_error']) || !empty($result['error_message']) || 
+    ($result['code'] !== 200 && $result['code'] !== 201)) {
+    
+    $error_response = [
+        "error" => "Error creating user",
+        "status" => $result['code']
+    ];
+    
+    // Message d'erreur principal
+    if (!empty($result['lucca_error'])) {
+        $error_response['message'] = $result['lucca_error'];
+    } elseif (!empty($result['error_message'])) {
+        $error_response['message'] = $result['error_message'];
+    } elseif (!empty($result['error'])) {
+        $error_response['message'] = $result['error'];
+    } elseif (isset($result['data']['title'])) {
+        $error_response['message'] = $result['data']['title'];
+    } else {
+        $error_response['message'] = "Unknown error occurred";
+    }
+    
+    // Détails de la réponse Lucca
+    if (!empty($result['data'])) {
+        $error_response['lucca_response'] = $result['data'];
+    }
+    
+    // Erreur 400 - Validation
+    if ($result['code'] === 400) {
+        $error_response['type'] = "Validation error";
+        $error_response['suggestion'] = "Check that all required fields are valid and properly formatted";
+    }
+    
+    // Erreur 401 - Non autorisé
+    if ($result['code'] === 401) {
+        $error_response['type'] = "Unauthorized";
+        $error_response['suggestion'] = "Check your API token in the Authorization header";
+    }
+    
+    // Erreur 403 - Permissions insuffisantes
+    if ($result['code'] === 403) {
+        $error_response['type'] = "Forbidden";
+        $error_response['suggestion'] = "Your API token does not have permission to create users. Check API token permissions in Lucca settings.";
+    }
+    
+    // Erreur 500 - Erreur serveur
+    if ($result['code'] === 500) {
+        $error_response['type'] = "Internal server error";
+        $error_response['suggestion'] = "This might indicate invalid foreign key IDs. Verify legalEntityId, departmentId, rolePrincipalId, calendarId, and managerId exist.";
+    }
+    
+    // Informations de debug
+    if (!empty($result['curl_info'])) {
+        $error_response['debug'] = [
+            'url' => $result['curl_info']['url'] ?? null,
+            'total_time' => $result['curl_info']['total_time'] ?? null
+        ];
+    }
+    
+    json_response($result['code'] ?: 500, $error_response);
+}
+
+// ==========================================
+// SUCCÈS - RÉPONSE SELON LA DOC LUCCA
+// ==========================================
+
+// Réponse au format exact de la documentation Lucca
+$response = [
+    "data" => $result['data']['data'] ?? $result['data'] ?? []
+];
+
+json_response(200, $response);
+

+ 13 - 6
api/user/user/PUT_user.php

@@ -3,7 +3,9 @@
  * Endpoint pour mettre à jour un utilisateur Lucca
  * 
  * Méthode : PUT
- * URL : /update_user.php?id=123
+ * URL : 
+ *   - Option 1: /PUT_user.php?id=123 (ID dans l'URL)
+ *   - Option 2: /PUT_user.php avec {"id": 123, ...} (ID dans le body)
  * 
  * Body JSON : Envoyez uniquement les champs que vous souhaitez modifier
  * Exemple minimal : {
@@ -56,13 +58,16 @@ function json_response(int $statusCode, array $payload): void {
 // Charge le client API Lucca
 require_once __DIR__ . '/../../lucca_client.php';
 
-// Récupère l'ID de l'utilisateur depuis l'URL
-$user_id = $_GET['id'] ?? null;
+// Récupère le JSON en entrée
+$input = json_decode(file_get_contents("php://input"), true);
+
+// Récupère l'ID de l'utilisateur depuis l'URL ($_GET) ou le body JSON
+$user_id = $_GET['id'] ?? ($input['id'] ?? null);
 
 if (!$user_id) {
     json_response(400, [
         "error" => "ID utilisateur manquant",
-        "message" => "Vous devez fournir l'ID de l'utilisateur dans l'URL : /update_user.php?id=123"
+        "message" => "Vous devez fournir l'ID de l'utilisateur dans l'URL (?id=123) ou dans le body JSON ({\"id\": 123, ...})"
     ]);
 }
 
@@ -74,8 +79,10 @@ if (!is_numeric($user_id)) {
     ]);
 }
 
-// Récupère le JSON en entrée
-$input = json_decode(file_get_contents("php://input"), true);
+// Retire l'ID du body si présent (pour éviter de l'envoyer à l'API)
+if (isset($input['id'])) {
+    unset($input['id']);
+}
 
 // Vérification que le JSON est valide
 if (!is_array($input) || empty($input)) {

+ 19 - 13
api/user/users/GET_all_users.php

@@ -2,11 +2,18 @@
 /**
  * Endpoint pour récupérer tous les utilisateurs SIPA depuis Lucca
  * 
- * Méthode : POST (ou GET sans body pour récupérer par défaut)
- * Body JSON : {"limit": 100, "offset": 0, "active_only": true}
+ * Méthode : GET
+ * Query Parameters : ?limit=100&offset=0&active_only=true
  * - limit (optionnel, défaut: 100) : nombre maximum de résultats à renvoyer
  * - offset (optionnel, défaut: 0) : position de départ pour la pagination
  * - active_only (optionnel, défaut: false) : si true, ne retourne que les utilisateurs avec contrat actif
+ * 
+ * Exemples :
+ * - GET_all_users.php (récupère 100 premiers utilisateurs)
+ * - GET_all_users.php?limit=50
+ * - GET_all_users.php?limit=50&offset=100
+ * - GET_all_users.php?active_only=true
+ * 
  * Réponse : {"input": {...}, "users": [...], "count": X, "total": Y}
  */
 
@@ -25,18 +32,17 @@ function json_response(int $statusCode, array $payload): void {
 // Charge le client API Lucca
 require_once __DIR__ . '/../../lucca_client.php';
 
-// Récupère le JSON en entrée
-$input = json_decode(file_get_contents("php://input"), true);
-
-// Si pas de body, initialiser un tableau vide
-if (empty($input)) {
-    $input = [];
-}
+// Récupère les paramètres depuis l'URL (query string)
+$limit = isset($_GET["limit"]) ? (int)$_GET["limit"] : 100;
+$offset = isset($_GET["offset"]) ? (int)$_GET["offset"] : 0;
+$active_only = isset($_GET["active_only"]) ? filter_var($_GET["active_only"], FILTER_VALIDATE_BOOLEAN) : false;
 
-// Paramètres avec valeurs par défaut
-$limit = isset($input["limit"]) ? (int)$input["limit"] : 100;
-$offset = isset($input["offset"]) ? (int)$input["offset"] : 0;
-$active_only = isset($input["active_only"]) ? (bool)$input["active_only"] : false;
+// Stocke les paramètres reçus pour la réponse
+$input = [
+    "limit" => $limit,
+    "offset" => $offset,
+    "active_only" => $active_only
+];
 
 // Construction des paramètres de la requête API
 $apiParams = [