cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP IPS, alter Groupnames in Transformation and assign to them

Bastian_Gschrey
Explorer
0 Likes
493

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"
                    }
                ]
            }
        ]
    }

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

@Bastian_Gschrey 

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

 

 

Bastian_Gschrey
Explorer
0 Likes
Hello Yogananda, Can you please explain further. When not doing the Replacestring function the assignment is working. The assignment from Group members is done with the .members assignment in the Group Section?
Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

@Bastian_Gschrey you can refer the below help documentation which provides detailed

yogananda_0-1740123691362.png

     {
        "type": "valueMapping",
        "sourcePaths": [
          "$.userType"
        ],
        "targetPath": "$.businessPartnerRoleCode",
        "defaultValue": "BUP003",
        "valueMappings": [
          {
            "key": [
              "Employee"
            ],
            "mappedValue": "BUP003"
          }
        ]
      },


https://help.sap.com/docs/cloud-identity-services/cloud-identity-services/target-sap-integrated-busi...