on ‎2025 Feb 21 6:49 AM
Hello,
We are facing a situation where our AD groups for our cloud target systems in SAP IBP have "DEV," "TST," or "PRD" in their names. These names need to be removed when reading from the source, and then the role should be assigned to the user. We are doing this to use the transport function for the roles, as they will then have the same name in all target systems. I have adjusted the transformation as follows. It runs without any errors, but the roles are not being assigned to the users:
"group": {
"mappings": [
{
"sourcePath": "$.displayName",
"targetVariable": "entityIdTargetSystem",
"scope": "createEntity",
"functions": [
{
"function": "replaceString",
"target": "TST-",
"replacement": ""
},
{
"function": "replaceString",
"target": "DEV-",
"replacement": ""
}
]
},
{
"sourcePath": "$.displayName",
"targetPath": "$.displayName",
"functions": [
{
"function": "replaceString",
"target": "TST-",
"replacement": ""
},
{
"function": "replaceString",
"target": "DEV-",
"replacement": ""
}
]
},
{
"sourcePath": "$.members[*].value",
"preserveArrayWithSingleElement": true,
"optional": true,
"targetPath": "$.members[?(@.value)]",
"functions": [
{
"function": "resolveEntityIds"
}
]
}
]
}
Request clarification before answering.
looking at your transformation - you have mapped to group mappings but role assignment happens on user mappings.. you will have to adjust into user mappings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bastian_Gschrey you can refer the below help documentation which provides detailed
{
"type": "valueMapping",
"sourcePaths": [
"$.userType"
],
"targetPath": "$.businessPartnerRoleCode",
"defaultValue": "BUP003",
"valueMappings": [
{
"key": [
"Employee"
],
"mappedValue": "BUP003"
}
]
},
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 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.