Skip to content

Commit 31bcc4b

Browse files
committed
Update configyml.md
1 parent 68bebab commit 31bcc4b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/import/configyml.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Il est au format yml
99

1010
```
1111
[NOM_DU_FICHIER]:
12+
primaryKey: //section non obligatoire
13+
- [key1]
14+
- [key2]
1215
mapping:
1316
[nom_champs_sesame]: "[nom_champs_json]"
1417
...
@@ -68,7 +71,21 @@ Fichier de données associée (dans cache/import.json
6871
]
6972
}
7073
```
74+
### Section primaryKey
75+
Par defaut les identités sont recherchées avec le couple "employeeNumber" et "employeeType"
7176

77+
Ce comportement peut être modifié en ajoutant la section **primaryKey** qui n'est pas obligatoire
78+
79+
Exemple : on veut pouvoir rechercher les identités par le champ uid. Naturellement il faut que le champs soit present dans la section mapping
80+
81+
```
82+
import.json:
83+
primaryKey:
84+
- inetOrgPerson.uid
85+
mapping:
86+
inetOrgPerson.uid: uid
87+
inetOrgPerson.title: title
88+
```
7289
### Section mapping
7390

7491
Ce paragraphe, dans le fichier config.yml sert à definir qui va où.

0 commit comments

Comments
 (0)