From ad9c499136353a1662edb400796eff8d26b16d7f Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Tue, 21 May 2024 10:01:40 +0800 Subject: [PATCH 1/3] fix README headers [skip ci] --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4edc16..170a3fc 100644 --- a/README.md +++ b/README.md @@ -781,7 +781,7 @@ appropriate domain privileges and who has logged in at least once into Google Wo accepted the terms and conditions. The email address for this user should be stored in the `config.json` as the `DelegatedAdminEmail` value under `Destination`/`ExtraJSON`. -## SolarWinds WebHelpDesk +### SolarWinds WebHelpDesk ```json @@ -832,6 +832,8 @@ as the `DelegatedAdminEmail` value under `Destination`/`ExtraJSON`. `ListClientsPageLimit`, `BatchSize` and `BatchDelaySeconds` are optional. Their defaults are as shown in the example config. +# Other notes + ### Exporting logs from CloudWatch The log messages in CloudWatch can be viewed on the AWS Management Console. If From 55e2af4fee3f5c46e771f6e5343278c27baa97b3 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Tue, 21 May 2024 10:04:54 +0800 Subject: [PATCH 2/3] add docs for the AttributeMap section of the config file --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 170a3fc..13b2f10 100644 --- a/README.md +++ b/README.md @@ -832,6 +832,38 @@ as the `DelegatedAdminEmail` value under `Destination`/`ExtraJSON`. `ListClientsPageLimit`, `BatchSize` and `BatchDelaySeconds` are optional. Their defaults are as shown in the example config. +## AttributeMap + +The `AttributeMap` section of the config file lists the data attributes to be synchronized from Source to Destination. It has the following parameters: + +- `Source` + +This is the name of an attribute as found in the [Source](#Sources) data provider. It is a required parameter. + +- `Destination` + +This is the name of an attribute as found in the [Destination](#Destinations) data provider. It is a required parameter. + +- `Required` + +If this parameter is included and contains `true`, then any source record that does not include this attribute is dropped from the data set. + +- `CaseSensitive` + +If this parameter is included and contains `true`, then the comparison between source and destination data values does not match if case is different. + +- `Expression` + +Optional regular expression string to use with the `Replace` parameter. Use groups delimited by parentheses to manipulate data as it is transferred from Source to Destination. + +Example: `(.*)` + +- `Replace` + +Optional replacement string to manipulate Source data before writing to the Destination. Group identifiers like `$1` can be used to reference groups defined in the `Expression` parameter. + +Example: `https://example.com?query=$1` + # Other notes ### Exporting logs from CloudWatch From ca0bf02d730369d53be4f885ed896abd397c3ffa Mon Sep 17 00:00:00 2001 From: Matt H Date: Wed, 28 Aug 2024 13:50:58 -0400 Subject: [PATCH 3/3] Fix Source and Destination AttributeMap field names in example config --- lambda-example/config.example.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lambda-example/config.example.json b/lambda-example/config.example.json index 5fec76b..e1fd102 100644 --- a/lambda-example/config.example.json +++ b/lambda-example/config.example.json @@ -35,18 +35,18 @@ }, "AttributeMap": [ { - "SourceName": "First_Name", - "DestinationName": "givenName", + "Source": "First_Name", + "Destination": "givenName", "required": true }, { - "SourceName": "Last_Name", - "DestinationName": "sn", + "Source": "Last_Name", + "Destination": "sn", "required": true }, { - "SourceName": "Email", - "DestinationName": "mail", + "Source": "Email", + "Destination": "mail", "required": true } ],