cancel
Showing results for 
Search instead for 
Did you mean: 

Meet InvalidJsonContentException error when provisioning user from IAS to SAP Jam Collaboration

0 Kudos

We faced an error when provisioning user from IAS to SAP Jam Collaboration these days:

error=com.sap.security.iag.provisioning.mapping.exceptions.InvalidJsonContentException: Source path: $.userName is not available in content, but is required in defined system transformation Caused by: com.sap.security.iag.provisioning.mapping.MandatorySourcePathNotFoundException: Source path: $.userName is not available in content, but is required in defined system transformation Caused by: com.jayway.jsonpath.PathNotFoundException: No results for path: $['userName'],

But we did not changed any configurations and it worked several weeks ago. The transformations for the source is like this:

{
    "user": {
        "mappings": [
            {
                "sourcePath": "$",
                "targetPath": "$"
            },
            {
                "sourcePath": "$.id",
                "targetVariable": "entityIdSourceSystem"
            },
            {
                "sourcePath": "$.id",
                "targetPath": "$.userName"
            },
            {
                "targetPath": "$.id",
                "type": "remove"
            },
            {
                "targetPath": "$.companyRelationship",
                "type": "remove"
            },
            {
                "targetPath": "$.passwordStatus",
                "type": "remove"
            },
            {
                "targetPath": "$.sourceSystem",
                "type": "remove"
            },
            {
                "targetPath": "$.meta",
                "type": "remove"
            },
            {
                "targetPath": "$.mailVerified",
                "type": "remove"
            },
            {
                "targetPath": "$.groups[*].display",
                "type": "remove"
            },
            {
                "condition": "$.displayName EMPTY true",
                "targetPath": "$.displayName",
                "type": "remove"
            },
            {
                "sourcePath": "$.timeZone",
                "optional": true,
                "targetPath": "$.timezone"
            }
        ]
    },
    "group": {
        "ignore": true,
        "mappings": [
            {
                "sourcePath": "$.id",
                "targetVariable": "entityIdSourceSystem"
            },
            {
                "constant": "urn:ietf:params:scim:schemas:core:2.0:Group",
                "targetPath": "$.schemas[0]"
            },
            {
                "sourcePath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:Group']['name']",
                "targetPath": "$.displayName"
            },
            {
                "sourcePath": "$.members",
                "preserveArrayWithSingleElement": true,
                "optional": true,
                "targetPath": "$.members"
            },
            {
                "constant": "urn:sap:cloud:scim:schemas:extension:custom:2.0:Group",
                "targetPath": "$.schemas[1]"
            },
            {
                "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": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:Group']['decription']",
                "optional": true,
                "targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:Group']['decription']"
            }
        ]
    }
}

Could anyone help on this? Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

GerganaTsakova
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Joice,

I see that your IAS source transformation is very different than the default one. I guess you have deleted some redundant mappings that are not related to your scenario. Nevertheless, the IAS transformations have been recently improved and enriched, and this discrepancy might have caused the problem.

Also, the error message says that the failed entities are missing "display name" in IAS (which is a required attribute for SAP Jam).

So, you can try the following solution:

1) Go to your IAS admin console and add a display name for every entity that has failed during the provisioning job.

2) Go back to the Identity Provisioning UI and start a new Read job.

3) If that doesn't work, update your IAS source transformation with the default one. Then, you can delete the obsolete mappings, if necessary. Run a new Read job.

Best regards,

Gergana