Skip to content

Commit 59c2d6f

Browse files
committed
Refactor JSON structure in Hibob user mapping guide for improved readability and consistency.
1 parent 81cd168 commit 59c2d6f

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

docs/guides/all/map-hibob-users-to-port-accounts.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -195,39 +195,38 @@ Follow the steps below to create the webhook integration:
195195

196196
```json showLineNumbers
197197
[
198-
{
199-
"blueprint": "hibob_user",
200-
"operation": "create",
201-
"filter": "(.body.response | has(\"employees\")) and (.body.response.employees | type == \"array\")",
202-
"itemsToParse": ".body.response.employees | map(select(.email != null))",
203-
"entity": {
204-
"identifier": ".item.id | tostring",
205-
"title": ".item.displayName | tostring",
206-
"properties": {
207-
"id": ".item.id",
208-
"firstName": ".item.firstName",
209-
"email": ".item.email",
210-
"department": ".item.work.department",
211-
"isManager": ".item.work.isManager",
212-
"work_title": ".item.work.title",
213-
"fullName": ".item.fullName",
214-
"displayName": ".item.displayName"
215-
}
216-
}
217-
},
218-
{
219-
"blueprint": "_user",
220-
"operation": "create",
221-
"filter": "(.body.response | has(\"employees\")) and (.body.response.employees | type == \"array\")",
222-
"itemsToParse": ".body.response.employees | map(select(.email != null))",
223-
"entity": {
224-
"identifier": ".item.email",
225-
"relations": {
226-
"hibob_user": ".item.id | tostring"
227-
}
228-
}
229-
198+
{
199+
"blueprint": "hibob_user",
200+
"operation": "create",
201+
"filter": "(.body.response | has(\"employees\")) and (.body.response.employees | type == \"array\")",
202+
"itemsToParse": ".body.response.employees | map(select(.email != null))",
203+
"entity": {
204+
"identifier": ".item.id | tostring",
205+
"title": ".item.displayName | tostring",
206+
"properties": {
207+
"id": ".item.id",
208+
"firstName": ".item.firstName",
209+
"email": ".item.email",
210+
"department": ".item.work.department",
211+
"isManager": ".item.work.isManager",
212+
"work_title": ".item.work.title",
213+
"fullName": ".item.fullName",
214+
"displayName": ".item.displayName"
215+
}
230216
}
217+
},
218+
{
219+
"blueprint": "_user",
220+
"operation": "create",
221+
"filter": "(.body.response | has(\"employees\")) and (.body.response.employees | type == \"array\")",
222+
"itemsToParse": ".body.response.employees | map(select(.email != null))",
223+
"entity": {
224+
"identifier": ".item.email",
225+
"relations": {
226+
"hibob_user": ".item.id | tostring"
227+
}
228+
}
229+
}
231230
]
232231
```
233232

0 commit comments

Comments
 (0)