cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping custom attribute

andrasw
Explorer

Hi,

We are doing target mapping in IAS. In the source we have a custom01 field populated with User Principal Name.

We would like to map this field to Custom Attribute 1 of the users. We have tried many different options but no success so far.

Currently we have the following mapping:

"sourcePath": "$.custom01",
"targetPath": $['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes']['?(@.name=='customAttribute1')']['value']

But we got the following error:

error=com.sap.security.iag.provisioning.mapping.exceptions.InvalidTransformationException: Invalid target path '$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes']['?(@.name=='customAttribute1')']['value']' : Property must be separated by comma or Property must be terminated close square bracket at index 83

Any suggestion? How could we select customAttribute1 in the mapping?

View Entire Topic
fjjvazquez
Participant
0 Kudos

Question guys, reading this post I would like to know if you can help me out here!! I am trying to bring values from fields to customattributes, 2 out 3 worked, as you can see within the picture "custom02" values are not shown in customattribute1, the rest are working fine. What do you think could it be?

custom02 is declared in the filter.

API Ver 1

Source:

{

"sourcePath": "$.loginMethod",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['loginMethod']"

},

{

"sourcePath": "$.custom02",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['melodia']"

},

{

"sourcePath": "$.personKeyNav.perPersonUuid",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['personGUID']"

},

Target:

{

"sourcePath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['melodia']",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][0]['value']",

"optional": true

},

{

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][0]['name']",

"condition": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['melodia'] EMPTY false",

"constant": "customAttribute1"

},

{

"sourcePath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['loginMethod']",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][0]['value']",

"optional": true

},

{

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][0]['name']",

"condition": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['loginMethod'] EMPTY false",

"constant": "customAttribute2"

},

{

"sourcePath": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['personGUID']",

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][2]['value']",

"optional": true

},

{

"targetPath": "$['urn:sap:cloud:scim:schemas:extension:custom:2.0:User']['attributes'][2]['name']",

"condition": "$['urn:sap:cloud:scim:schemas:extension:sfsf:2.0:User']['personGUID'] EMPTY false",

"constant": "customAttribute3"

},