on 2023 Oct 16 3:19 PM
Hi,
we are live with IAS with SuccessFactors as Source system and IAS as Target system.
We have a requirement to save custom attribute 2 in IAS with the user id and a prefix 'HI_'.
I added custom transformations in the Source system like this:
{
"sourcePath": "$.userId",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][1]['value']",
"functions": [
{
"type": "concatString",
"prefix": "HI_"
}
]
},
{
"constant": "customAttribute2",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][1]['name']"
},
Then I added the following custom transformations in the Target system:
{
"sourcePath": "$.userSysID",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][1]['value']",
"functions": [
{
"type": "concatString",
"prefix": "HI_"
}
]
},
{
"constant": "customAttribute2",
"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][1]['name']"
},
when I run a sync job, all employees are ending in error when writing to IAS, with this error:error=com.sap.security.iag.provisioning.mapping.exceptions.InvalidJsonContentException: Source path: $.userSysID is not available in content, but is required in defined system transformation Caused by: com.sap.security.iag.provisioning.mapping.MandatorySourcePathNotFoundException: Source path: $.userSysID is not available in content, but is required in defined system transformation Caused by: com.jayway.jsonpath.PathNotFoundException: No results for path: $['userSysID'],but I am not able to save it, for sure something wrong in the target transformations.
Any help that you can give me is appreciated!
thanks
Marco
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rodin,
Both UserId and Username are added to sf.user.attributes but still I am getting the error.
I believe that the source transformation is fine - I am currently testing with Username as source path and concatenate it with a prefix and then save it in custom attribute 2:
the error happens in the write operation on the target system so for sure the target transformations are wrong because all employees are failing with the same error Source path: $.username is not available in content, but is required in defined system transformation
Note that the Username will be saved in the Login name as per the standard, then I want to transform it and save it to custome attribute 2, but I don't know how to write it apparently 😞
I am thinking to create a custom field in SF (with some business rule to default the prefix) and then import the custom field in a custom attribute directly, but if it is possible to avoid it even better
thanks for any idea, I appreciate the help 🙂
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rodin, thanks for your reply.
I tried many different transformations but I am still getting the same error.
You're right, userSysID was not added to sf.user.attributes. However I changed it to UserId (which is added in sf.user.attributes) and I get the same error: Source path: $.userId is not available in content, but is required in defined system transformation
My objective is to take the userID, concatenate it like HI_userID and save it in custom attribute 2.
thanks
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Marco,
As " Source path: $.userSysID is not available in content", is this attribute specified in the sf.user.attributes property to be read from SF ?
Best regards,
Rodin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
49 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.