Code Syntax
{
"user": {
"mappings": [
{
"sourcePath": "$.id",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['userId']",
"targetVariable": "entityIdSourceSystem"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['userUuid']",
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['userUuid']"
},
{
"sourcePath": "$.schemas",
"preserveArrayWithSingleElement": true,
"targetPath": "$.schemas"
},
{
"sourcePath": "$.userName",
"optional": true,
"targetPath": "$.userName",
"correlationAttribute": true
},
{
"sourcePath": "$.name.givenName",
"optional": true,
"targetPath": "$.name.givenName"
},
{
"sourcePath": "$.name.middleName",
"optional": true,
"targetPath": "$.name.middleName"
},
{
"sourcePath": "$.name.familyName",
"optional": true,
"targetPath": "$.name.familyName"
},
{
"sourcePath": "$.name.honorificPrefix",
"optional": true,
"targetPath": "$.name.honorificPrefix"
},
{
"sourcePath": "$.emails[*].value",
"preserveArrayWithSingleElement": true,
"targetPath": "$.emails[?(@.value)]"
},
{
"sourcePath": "$.emails[?(@.primary== true)].value",
"correlationAttribute": true
},
{
"sourcePath": "$.active",
"targetPath": "$.active"
},
{
"sourcePath": "$.userType",
"optional": true,
"targetPath": "$.userType"
},
{
"sourcePath": "$.addresses",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.addresses"
},
{
"sourcePath": "$.locale",
"optional": true,
"targetPath": "$.locale"
},
{
"sourcePath": "$.phoneNumbers",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.phoneNumbers"
},
{
"sourcePath": "$.timeZone",
"optional": true,
"targetPath": "$.timezone"
},
{
"sourcePath": "$.displayName",
"optional": true,
"targetPath": "$.displayName"
},
{
"sourcePath": "$.groups",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.groups"
},
{
"condition": "$.displayName EMPTY true",
"targetPath": "$.displayName",
"type": "remove"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['validFrom']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['validFrom']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['validTo']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['validTo']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystem']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystem']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystemId']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystemId']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystem']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['sourceSystem']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['employeeNumber']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['employeeNumber']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['costCenter']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['costCenter']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['organization']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['organization']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['division']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['division']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['department']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['department']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['manager']['value']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['manager']['value']"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['manager']['displayName']",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['manager']['displayName']"
},
{
"sourcePath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']",
"optional": true,
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']"
},
{
"sourcePath": "$.company",
"optional": true,
"targetPath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['organization']"
}
]
},
"group": {
"mappings": [
{
"sourcePath": "$.id",
"targetVariable": "entityIdSourceSystem"
},
{
"sourcePath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:Group']['name']",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:Group']['name']"
},
{
"sourcePath": "$.displayName",
"targetPath": "$.displayName"
},
{
"sourcePath": "$.members",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.members"
}
]
}
}
Code Syntax
{
"user": {
"condition": "$.groups[?(@.display== 'MaCo_BU_<subdomain>' || @.display== 'MaCo_PW_<subdomain>' || @.display== 'MaCo_DPP_<subdomain>')] EMPTY false ",
"mappings": [
{
"sourcePath": "$.userName",
"targetPath": "$.personExternalID"
},
{
"sourcePath": "$.externalId",
"optional": true,
"targetPath": "$.personExternalID"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:enterprise:2.0:User']['employeeNumber']",
"optional": true,
"targetPath": "$.personExternalID"
},
{
"sourceVariable": "entityIdTargetSystem",
"targetPath": "$.personID"
},
{
"constant": "false",
"targetPath": "$.markedForArchivingIndicator"
},
{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:sap:2.0:User']['userUuid']",
"optional": true,
"targetPath": "$.user.globalUserID"
},
{
"targetPath": "$.businessPartnerRoleCode",
"type": "valueMapping",
"sourcePaths": [
"$.userType"
],
"defaultValue": "BUP003",
"valueMappings": [
{
"key": [
"Employee"
],
"mappedValue": "BUP003"
},
{
"key": [
"Freelancer"
],
"mappedValue": "BBP010"
},
{
"key": [
"Service Performer"
],
"mappedValue": "BBP005"
}
]
},
{
"sourceVariable": "currentDate",
"targetPath": "$.validityPeriod.startDate",
"scope": "createEntity"
},
{
"constant": "9999-12-31",
"targetPath": "$.validityPeriod.endDate",
"scope": "createEntity"
},
{
"sourceVariable": "currentDate",
"targetPath": "$.user.validityPeriod.startDate",
"scope": "createEntity"
},
{
"constant": "9999-12-31",
"targetPath": "$.user.validityPeriod.endDate",
"scope": "createEntity"
},
{
"sourcePath": "$.name.givenName",
"optional": true,
"targetPath": "$.personalInformation.firstName"
},
{
"sourcePath": "$.name.familyName",
"targetPath": "$.personalInformation.lastName"
},
{
"sourcePath": "$.name.middleName",
"optional": true,
"targetPath": "$.personalInformation.middleName"
},
{
"sourcePath": "$.name.formatted",
"optional": true,
"targetPath": "$.personalInformation.personFullName"
},
{
"sourcePath": "$.userName",
"targetPath": "$.user.userName"
},
{
"sourcePath": "$.locale",
"optional": true,
"targetPath": "$.user.logonLanguageCode"
},
{
"sourcePath": "$.emails[0].value",
"optional": true,
"targetPath": "$.workplaceInformation.emailAddress"
},
{
"constant": "false",
"targetPath": "$.user.lockedIndicator"
},
{
"condition": "$.active == false",
"constant": "true",
"targetPath": "$.user.lockedIndicator"
}
]
},
"group": {
"condition": "$.displayName=='MaCo_BU_<subdomain>' || $.displayName=='MaCo_PW_<subdomain>' || $.displayName=='MaCo_DPP_<subdomain>'",
"mappings": [
{
"targetPath": "$.ROLE_NAME",
"targetVariable": "entityIdTargetSystem",
"type": "valueMapping",
"defaultValue": "",
"sourcePaths": [
"$.displayName"
],
"valueMappings": [
{
"key": [
"MaCo_BU_<subdomain>"
],
"mappedValue": "BR_CUSTOMER_USER_AGENT"
},
{
"key": [
"MaCo_PW_<subdomain>"
],
"mappedValue": "BR_CUSTOMER_POWER_USER"
},
{
"key": [
"MaCo_DPP_<subdomain>"
],
"mappedValue": "BR_CUSTOMER_DPP_USER"
}
]
},
{
"sourcePath": "$.members[*].value",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.members[?(@.value)]",
"functions": [
{
"function": "resolveEntityIds"
}
]
}
]
}
}