You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
@@ -412,110 +412,6 @@ Either updates the **PrivatePerson** with FREG data if person exists on identifi
412
412
}
413
413
```
414
414
415
-
### ```POST /SyncEmployee```
416
-
- Creates **PrivatePerson** on person if one doesn't exist
417
-
- Updates name and address on **PrivatePerson** if one already exists
418
-
- Creates **Employee project** on user if one doesn't exist
419
-
- Sends email alert to archive department if there is need for manual operations:
420
-
- If manager does not have user in P360
421
-
- If manager have several contactpersons on email-address
422
-
- If enterprise manager is employed in is missing enterprisenumber
423
-
- If several enterprises are found on the same enterprisenumber
424
-
- If enterprise does not have access group of type "Lønn" or "Personal"
425
-
- If several employee projects are found on one employee
426
-
427
-
Fetches person info from [Det sentrale folkeregister](https://github.com/vtfk/azf-dsf)
428
-
429
-
#### `With ssn and upn as parameter`
430
-
```json
431
-
{
432
-
"ssn": "01010101010",
433
-
"upn": "per.son@company.no"
434
-
}
435
-
```
436
-
437
-
#### `With birthdate and name as parameter (only works with one match)`
438
-
```json
439
-
{
440
-
"birthdate": "010101",
441
-
"firstName": "Per",
442
-
"lastName": "Son",
443
-
"upn": "per.son@company.no"
444
-
}
445
-
```
446
-
447
-
#### `Optional: Do not lookup person in DSF (det sentrale folkeregister). (Requires more info) Useful when person is not registered in DSF`
448
-
Either updates the **PrivatePerson** with the provided data if person exists on ssn, or creates new **PrivatePerson** with the provided data. Updates or creates **elevmappe** as well.
449
-
```json
450
-
{
451
-
"ssn": "12345678910",
452
-
"firstName": "Bjarte",
453
-
"lastName": "Bjøstheim",
454
-
"streetAddress": "Gamlehjemmet 44",
455
-
"zipCode": "1234",
456
-
"zipPlace": "Jupiter",
457
-
"addressCode": 0,
458
-
"skipDSF": true, // Must be set to "true" if you need to skip DSF lookup
459
-
"upn": "bjarte.bjostheim@company.no
460
-
}
461
-
```
462
-
463
-
#### `Optional: With parameter allowNullValues`
464
-
Set **allowNullValues** to **true**, if you want to continue also when accessGroups and enterprise is not found. **REMARK:** Client itself must handle access groups, enterprise, and manager when this parameter is set to true
465
-
```json
466
-
{
467
-
"ssn": "01010101011",
468
-
"upn": "per.son@company.no",
469
-
"allowNullValues": false// Defaults to "true"
470
-
}
471
-
```
472
-
#### `RETURNS`
473
-
```json
474
-
{
475
-
"dsfPerson": {
476
-
"ssn": "010101010101",
477
-
"oldSsn": "010101010101", // The same as ssn if no change in DSF, or not specified by client
478
-
"firstName": "Per",
479
-
"lastName": "Son",
480
-
"streetAddress": "Gata 2",
481
-
"zipCode": "1234",
482
-
"zipPlace": "STED",
483
-
"addressType": "VANLIG BOSATT",
484
-
"addressCode": 0,
485
-
"residentialAddress": {
486
-
"ADR": "Gata 2",
487
-
"POSTN": "1234",
488
-
"POSTS": "STED"
489
-
}
490
-
},
491
-
"privatePerson": {
492
-
"ssn": "010101010101",
493
-
"oldSsn": "010101010101",
494
-
"firstName": "Per",
495
-
"lastName": "Son",
496
-
"streetAddress": "Gata 2",
497
-
"zipCode": "1234",
498
-
"zipPlace": "STED",
499
-
"addressCode": 0,
500
-
"recno": 123456,
501
-
"updated": false, // If the privatePerson was updated
502
-
"updatedSsn": false// If the ssn of the privatePerson was updated
503
-
},
504
-
"employee": {
505
-
"upn": "per.son@company.no", // Employee userPrincipalName from azure ad
506
-
"manager": "herr.sjef@company.no", // Registered manager in azure ad
507
-
"enterpriseNumber": "123456", // NOTE: Can be null if allowNullValues is false
508
-
"enterpriseName": "Seksjon for surr og tull", // NOTE: Can be null if allowNullValues is false
509
-
"accessGroups": {
510
-
"personal": "Personal surr og tull", // NOTE: Can be null if allowNullValues is false
511
-
"lonn": "Lønn surr og tull"// NOTE: Can be null if allowNullValues is false
512
-
},
513
-
"recno": 12345, // Recno of employeeProject
514
-
"projectNumber": "23-12"// ProjectNumber of employeeProject
515
-
}
516
-
}
517
-
```
518
-
519
415
### ```POST /SyncSharePointSite```
520
416
Endpoint for connecting a Sharepoint site to a archive-project, and a list || documentLibrary || folder to a archive-case
521
417
@@ -553,59 +449,48 @@ The Sharepoint site is connected to a archive-projectNumber. The list || documen
Currently available archive templates [All templates](https://github.com/vtfk/azf-archive/blob/master/templates)
559
-
560
-
| System | Template | Languages | Description |
561
-
|--------|----------|-----------|-------------|
562
-
| elevmappe | create-elevmappe | nb | Create **Elevmappe** by referencing **social security number**.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-create-elevmappe.json)
563
-
| elevmappe | create-private-person | nb | Create **PrivatePerson** in *P360* contact register.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-create-private-person.json)
564
-
| elevmappe | get-documents | nb | Get **Documents** archived on a **caseNumber**.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-get-documents.json)
565
-
| elevmappe | get-elevmappe | nb | Get **Elevmappe** archived on a **social security number**.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-get-elevmappe.json)
566
-
| elevmappe | get-private-person | nb | Get **PrivatePerson** from *P360* contact register by referencing **social security number**.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-get-private-person.json)
567
-
| elevmappe | update-elevmappe | nb | Update **PrivatePerson** on **Elevmappe** archived on a **caseNumber**.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-update-elevmappe.json)
568
-
| elevmappe | update-private-person | nb | Update **PrivatePerson** in *P360* contact register.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/elevmappe-update-private-person.json)
569
-
| iop | hemmelig | nb | Sends a auto generate PDF to school to distribute this manully.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/iop-hemmelig.json)
570
-
| iop | document | nb | Archive an IOP on students elevmappe.<br>[JSON template and data format available here](https://github.com/vtfk/azf-archive/blob/master/templates/iop-document.json)
571
-
| masseutsendelse | utsendelsesdokument | nb | Upload document(s)
452
+
All templates are found in [the templates folder](./templates/)
0 commit comments