Cannot get the logs to be printed from web service connector before operation rule

Hello
So I created a debug rule to see what was happening with my request.
The rule is the following:

{
    "description": "Debug rule",
    "type": "WebServiceBeforeOperationRule",
    "signature": {
        "input": [
            {
                "name": "application",
                "description": "The application associated with the operation being processed.",
                "type": null
            },
            {
                "name": "requestEndPoint",
                "description": "The current request information containing the header, body, context url, method type, response attribute map, and response code. \nThis object can be modified directly and returned by the rule to update the endpoint information \n that is used by the current operation",
                "type": null
            },
            {
                "name": "oldResponseMap",
                "description": "earlier response object ",
                "type": null
            },
            {
                "name": "restClient",
                "description": "REST Client Object",
                "type": null
            },
            {
                "name": "provisioningPlan",
                "description": "A ProvisioningPlan object containing the payload of the http request. A provisioning plan has an account request which defines the operation to be performed on the account. \n An account request can contain multiple attribute requests and each attribute request represents an operation on a single account attribute.",
                "type": null
            },
            {
                "name": "partition",
                "description": "If applicable, a Partition object with the current aggregation's partitioning information.",
                "type": null
            }
        ],
        "output": {
            "name": "Map",
            "description": "An updated or unmodified 'requestEndPoint' object. If application object modifications are desired, create a map containing keys 'updatedEndPoint' and 'connectorStateMap' and use it as the return value; \n Within the new map, the 'updatedEndPoint' can be set to an updated or unmodified 'requestEndPoint' object. \nThe 'connectorStateMap' will be saved as persistent values in the application definition.",
            "type": null
        }
    },
    "sourceCode": {
        "version": "1.0",
        "script": "import java.util.*;\nimport org.json.*;\nimport connector.common.JsonUtil;\nMap body = requestEndPoint.getBody();\nString jsonBody = (String) body.get(\"jsonBody\");\nString url = (String) requestEndPoint.getFullUrl();\nString operation = (String) requestEndPoint.getOperationType();\nlog.error(\"Web Service Connector - Body: \"+jsonbody);\nlog.error(\"Web Service Connector - URL: \"+url);\nlog.error(\"Web Service Connector - Operation: \"+operation);\nlog.error(\"provisioningPlan: \"+provisioningPlan.toString());\nlog.error(\"Web Service Connector - request\"+ requestEndPoint);\nreturn requestEndPoint;"
    },
    "attributes": {
        "sourceVersion": "1.0"
    },
    "id": "[]",
    "name": "Web Service Before Operation Rule Debug",
    "created": "[]",
    "modified": "[]"
}

I then added it to the source:

[
  {
    "op": "add",
    "path": "/connectorAttributes/connectionParameters/5/beforeRule",
    "value": "Web Service Before Operation Rule Debug"
  }
]

And I finally tried to active it via API /managed-clusters

{
  "durationMinutes": "120",
  "rootLevel": "DEBUG",
   "logLevels": {
    "sailpoint.connector.WebServices": "DEBUG"
  }
}

All the configuration has been updated if I believe the API, but I still can’t see anything in the logs from my rule when I create a user.
I tried to turn the WebService into trace, which actually printed some trace (the actual request), but still nothing from my rule.

What am I missing?

Thank you

I actually replied to my own issue, the documentation https://community.sailpoint.com/t5/IdentityNow-Articles/Enabling-Connector-Logging-in-IdentityNow/ta-p/188107 is mentionning “sailpoint.connector.WebServices” but the actual entry should be “sailpoint.connector.WebService”.

Changing this worked.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.