cancel
Showing results for 
Search instead for 
Did you mean: 

IPS transformation assignGroup and multiple groups assignment

arturka
Explorer
0 Kudos
140,321

Hi All

We are trying to assign groups to users via transformation. It works if no conditions are used. But  if we have more than one condition, only one group is assigned. SCIM 2.0 is used.

We have following gorups

on IAS

arturka_0-1733412136300.png

On Onprem 

Z_ABAP_GROUP_DEV,

Z_ABAP_GROUP_TST

User has both groups assigned on ABAP system. 

On source system transformation we have 

 

 

{
"targetPath": "$.groups[0].value",
"condition": "$.ACTIVITYGROUPS[?(@.AGR_NAME == 'Z_ABAP_GROUP_TST)] EMPTY false",
"constant": "xxxxxxxx-xxxxxx-xxxx-b94c-62bb6623cc84",
"preserveArrayWithSingleElement": true
},
{
"targetPath": "$.groups[1].value",
"condition": "$.ACTIVITYGROUPS[?(@.AGR_NAME == 'Z_ABAP_GROUP_DEV')] EMPTY false",
"constant": "xxxxxxx-xxxxx-xxxx-9074-ed731f26b374",
"preserveArrayWithSingleElement": true
}

 

 

And this works.

Payload is send to the Target transformation, both groups included

arturka_3-1733413403789.png

 

on Target side we have 

 

 

{
"condition": "$.groups[?(@.value == 'xxxxxxxx-xxxxxx-xxxx-b94c-62bb6623cc84')] EMPTY false",
"constant": [
{
"id": "xxxxxxxx-xxxxxx-xxx-b94c-62bb6623cc84"
}
],
"targetVariable": "assignGroup"
},
{
"condition": "$.groups[?(@.value == 'xxxxxxx-xxxxx-xxxx-9074-ed731f26b374')] EMPTY false",
"constant": [
{
"id": "xxxxxxx-xxxxx-xxxx-9074-ed731f26b374"
}
],
"targetVariable": "assignGroup"
}
 

 

 

In result only one group (with id xxxxx-xxxx-xxxx-9074-ed731f26b374 - second form transformation - TST)  is assigned to the user 

arturka_1-1733412375731.png

If user has only one OnPrem group assigned (...DEV with id xxxxxxxx-xxxxxx-xxx-b94c-62bb6623cc84 first in transformation) this group is assigned properly. 

 

 

Any idea how to fix this ? (Ticket to SAP raised) 

Following code if first "targetVariable": "assignGroup" is removed doesn't works as well 

 

 

{
"condition": "$.groups[?(@.value == 'xxxxxxxx-xxxxxx-xxxx-b94c-62bb6623cc84')] EMPTY false",
"constant": [
{
"id": "xxxxxxxx-xxxxxx-xxx-b94c-62bb6623cc84"
}
]
},
{
"condition": "$.groups[?(@.value == 'xxxxxxx-xxxxx-xxxx-9074-ed731f26b374')] EMPTY false",
"constant": [
{
"id": "xxxxxxx-xxxxx-xxxx-9074-ed731f26b374"
}
],
"targetVariable": "assignGroup"
}
 

 

 

Regards

Artur

 

Accepted Solutions (0)

Answers (0)