2024 Dec 05 3:45 PM - edited 2024 Dec 05 3:57 PM
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
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
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
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
Request clarification before answering.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.