Skip to content

Commit c955610

Browse files
authored
Feature fieldmapping updates and cleanup (#20)
* Update fieldMapping.json * Removed pw as it is no longer required * Removed notes about default value to false, as this is expected * Updated mandatory descriptions * Updated logo and corrected table of contents * Moved requirements and remarks to top * improved description of insite and profit * Updated readme with remarks about insite and profit windows
1 parent e01ea38 commit c955610

2 files changed

Lines changed: 49 additions & 61 deletions

File tree

README.md

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,56 @@
55
> This repository contains the connector and configuration code only. The implementer is responsible to acquire the connection details such as username, password, certificate, etc. You might even need to sign a contract or agreement with the supplier before implementing this connector. Please contact the client's application manager to coordinate the connector requirements.
66
77
<p align="center">
8-
<img src="https://www.tools4ever.nl/wp-content/uploads/2024/08/Logo.png>
8+
<img src="https://github.com/Tools4everBV/HelloID-Conn-Prov-Target-AFAS-Profit-Users/blob/main/Logo.png?raw=true" alt="AFAS Logo">
99
</p>
1010

11-
## Table of contents
11+
## Table of Contents
1212

1313
- [HelloID-Conn-Prov-Target-AFAS-Profit-Users](#helloid-conn-prov-target-afas-profit-users)
14-
- [Table of contents](#table-of-contents)
14+
- [Table of Contents](#table-of-contents)
15+
- [Requirements](#requirements)
16+
- [Remarks](#remarks)
1517
- [Introduction](#introduction)
1618
- [Getting started](#getting-started)
1719
- [Provisioning PowerShell V2 connector](#provisioning-powershell-v2-connector)
1820
- [Correlation configuration](#correlation-configuration)
1921
- [Field mapping](#field-mapping)
2022
- [Connection settings](#connection-settings)
21-
- [Prerequisites](#prerequisites)
22-
- [Remarks](#remarks)
2323
- [Scope](#scope)
2424
- [Setup the connector](#setup-the-connector)
2525
- [Getting help](#getting-help)
2626
- [HelloID docs](#helloid-docs)
2727

28+
### Requirements
29+
30+
- [ ] HelloID Provisioning agent (cloud or on-prem).
31+
- [ ] Loaded and available AFAS GetConnectors.
32+
- [ ] In addition to use to the above get-connector, the connector also uses the following build-in Profit update-connectors:
33+
* KnUser
34+
- [ ] AFAS App Connector with access to the GetConnectors and associated views.
35+
- [ ] Token for this AppConnector
36+
37+
> [!TIP]
38+
> For this connector we have created a default set [Tools4ever - HelloID - T4E_HelloID_Users_v2.gcn], which can be imported directly into the AFAS Profit environment.
39+
40+
> [!NOTE]
41+
> When the connector is defined as target system, only the following GetConnector is used by HelloID:
42+
> * Tools4ever - HelloID - T4E_HelloID_Users_v2
43+
44+
### Remarks
45+
46+
> [!IMPORTANT]
47+
> In view of GDPR, the persons private data, such as private email address and birthdate are not in the data collection by default. When needed for the implementation (e.g. set emailaddress with private email address on delete), these properties will have to be added.
48+
49+
> [!IMPORTANT]
50+
> We never delete users in AFAS, we only clear the unique fields and block the users.
51+
52+
> [!IMPORTANT]
53+
> **InSite** is a required field when creating a user. If this field is not mapped, the default value is `true`. Enabling InSite will automatically enable Pocket.
54+
55+
> [!IMPORTANT]
56+
> **Profit Windows** is a required field when creating a user. If this field is not mapped, the default value is `true`. Enabling Profit Windows will automatically enable both InSite and Pocket.
57+
2858
## Introduction
2959

3060
_HelloID-Conn-Prov-Target-AFAS-Profit-Users_ is a _target_ connector. _AFAS-Profit-Users_ provides a interface to communicate with Profit through a set of GetConnectors, which is component that allows the creation of custom views on the Profit data. GetConnectors are based on a pre-defined 'data collection', which is an existing view based on the data inside the Profit database.
@@ -102,30 +132,6 @@ The following settings are required to connect to the API.
102132
| Update User ID | When toggled, the User ID will be updated if it doesn't match mapped naming convention. **Note that this is not advised as this can break certain links in AFAS. Use with care!** | |
103133
| Toggle debug logging | When toggled, extra logging is shown. Note that this is only meant for debugging, please switch this off when in production. | |
104134

105-
### Prerequisites
106-
107-
- [ ] HelloID Provisioning agent (cloud or on-prem).
108-
- [ ] Loaded and available AFAS GetConnectors.
109-
- [ ] In addition to use to the above get-connector, the connector also uses the following build-in Profit update-connectors:
110-
* KnUser
111-
- [ ] AFAS App Connector with access to the GetConnectors and associated views.
112-
- [ ] Token for this AppConnector
113-
114-
> [!TIP]
115-
> For this connector we have created a default set [Tools4ever - HelloID - T4E_HelloID_Users_v2.gcn], which can be imported directly into the AFAS Profit environment.
116-
117-
> [!NOTE]
118-
> When the connector is defined as target system, only the following GetConnector is used by HelloID:
119-
> * Tools4ever - HelloID - T4E_HelloID_Users_v2
120-
121-
### Remarks
122-
123-
> [!IMPORTANT]
124-
> In view of GDPR, the persons private data, such as private email address and birthdate are not in the data collection by default. When needed for the implementation (e.g. set emailaddress with private email address on delete), these properties will have to be added.
125-
126-
> [!IMPORTANT]
127-
> We never delete users in AFAS, we only clear the unique fields and block the users.
128-
129135
#### Scope
130136
The data collection retrieved by the set of GetConnector's is sufficient for HelloID to provision persons.
131137
The data collection can be changed by the customer itself to meet their requirements.
@@ -135,8 +141,6 @@ The data collection can be changed by the customer itself to meet their requirem
135141
| __Tools4ever - HelloID - T4E_HelloID_Users_v2__ | contract start date | <[Vandaag + 3 maanden] |
136142
| | contract end date | >[Vandaag - 3 maanden];[] |
137143

138-
139-
140144
## Setup the connector
141145

142146
> [!TIP]

fieldMapping.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"MappingFields": [
44
{
55
"Name": "Acon",
6-
"Description": "Connector",
6+
"Description": "[Required when creating user] Connector.",
77
"Type": "Text",
88
"MappingActions": [
99
{
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"Name": "Abac",
22-
"Description": "Reservekopieen via commandline",
22+
"Description": "[Required when creating user] Reservekopieen via commandline Connector.",
2323
"Type": "Text",
2424
"MappingActions": [
2525
{
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"Name": "Acom",
38-
"Description": "Commandline",
38+
"Description": "[Required when creating user] Commandline.",
3939
"Type": "Text",
4040
"MappingActions": [
4141
{
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"Name": "Gebruiker",
103-
"Description": "[Mandatory] This is the account refference. For export account data",
103+
"Description": "[Required] This is the account refference. For export account data",
104104
"Type": "Text",
105105
"MappingActions": [
106106
{
@@ -117,7 +117,7 @@
117117
},
118118
{
119119
"Name": "Medewerker",
120-
"Description": "[Mandatory] For Correlation",
120+
"Description": "[Required] For Correlation",
121121
"Type": "Text",
122122
"MappingActions": [
123123
{
@@ -133,7 +133,7 @@
133133
},
134134
{
135135
"Name": "MtCd",
136-
"Description": "[Mandatory] Mutatie code",
136+
"Description": "[Required] Mutatie code",
137137
"Type": "Text",
138138
"MappingActions": [
139139
{
@@ -175,25 +175,9 @@
175175
}
176176
]
177177
},
178-
{
179-
"Name": "Pw",
180-
"Description": "[Mandatory] dummy pwd, not used, but required",
181-
"Type": "Text",
182-
"MappingActions": [
183-
{
184-
"MapForActions": [
185-
"Create"
186-
],
187-
"MappingMode": "Fixed",
188-
"Value": "\"GHJKL!!!23456gfdgf\"",
189-
"UsedInNotifications": false,
190-
"StoreInAccountData": false
191-
}
192-
]
193-
},
194178
{
195179
"Name": "Site",
196-
"Description": "[Mandatory] Outsite",
180+
"Description": "Outsite",
197181
"Type": "Text",
198182
"MappingActions": [
199183
{
@@ -219,7 +203,7 @@
219203
},
220204
{
221205
"Name": "Nm",
222-
"Description": "[Mandatory] Omschrijving",
206+
"Description": "[Required] Omschrijving",
223207
"Type": "Text",
224208
"MappingActions": [
225209
{
@@ -236,7 +220,7 @@
236220
},
237221
{
238222
"Name": "InSi",
239-
"Description": "[Mandatory] InSite",
223+
"Description": "[Required when creating user] InSite.\nIf this field is not mapped, the default value is true.\nEnabling InSite will automatically enable Pocket.",
240224
"Type": "Text",
241225
"MappingActions": [
242226
{
@@ -262,7 +246,7 @@
262246
},
263247
{
264248
"Name": "Awin",
265-
"Description": "[Mandatory] Profit Windows. Must be false to turn off InSite",
249+
"Description": "[Required when creating user] Profit Windows.\nIf this field is not mapped, the default value is true.\nEnabling Profit Windows will automatically enable InSite and Pocket.",
266250
"Type": "Text",
267251
"MappingActions": [
268252
{
@@ -279,7 +263,7 @@
279263
},
280264
{
281265
"Name": "Upn",
282-
"Description": "[Mandatory] userPrincipalName",
266+
"Description": "UserPrincipalName",
283267
"Type": "Text",
284268
"MappingActions": [
285269
{
@@ -305,7 +289,7 @@
305289
},
306290
{
307291
"Name": "UsId",
308-
"Description": "[Mandatory] Gebruiker code",
292+
"Description": "[Required] Gebruiker code",
309293
"Type": "Text",
310294
"MappingActions": [
311295
{
@@ -322,7 +306,7 @@
322306
},
323307
{
324308
"Name": "EmAd",
325-
"Description": "[Mandatory] E-mail",
309+
"Description": "E-mail",
326310
"Type": "Text",
327311
"MappingActions": [
328312
{
@@ -348,4 +332,4 @@
348332
}
349333
],
350334
"UniqueFieldNames": []
351-
}
335+
}

0 commit comments

Comments
 (0)