Hi Team,
We have two separate on-premises AD sources in our environment (ADsource1 and ADsource2). Both sources are configured identically, using the same IQService server and service accounts.
Provisioning and aggregation are generally working without any issues for both sources.
I am currently testing a connector rule of type ConnectorAfterCreate (e.g. AD After Create) on ADsource2. We already have an existing AfterCreate rule configured on ADsource1, which is working as expected.
However, when I try to implement a similar rule on ADsource2 by provisioning a test account, the operation fails with the following error:
sailpoint.connector.ConnectorException: Errors returned from IQService.
Account creation rolledback due to partial success.
Create operation is successful but post script execution failed:
After script returned non zero exit code : 1
To isolate the issue, I simplified the PowerShell script to contain only the following:
"AfterCreate fired at $(Get-Date)" |
Out-File "C:\SailPoint\IQService\Logs\aftercreate_marker.log" -Append
exit 0
However, even with this simplified script, no output file is being generated.
The rule definition currently looks like this:
{
"script": "\r\n\t\r\nStart-Transcript -Path \"C:\\SailPoint\\IQService\\Logs\\aftercreate_debug.log\"\r\n\"AfterCreate fired at $(Get-Date)\" | Out-File \"C:\\SailPoint\\IQService\\Logs\\aftercreate_marker.log\" -Append\r\nStop-Transcript\r\nexit 0",
"attributes": {
"ObjectOrientedScript": "true",
"extension": ".ps1",
"sourceVersion": "1.0",
"disabled": "false",
"program": "powershell.exe",
"timeout": "300"
},
"id": "a28460008d774a27aa7080ca568670c4",
"name": "After Create",
"created": "2026-11-04T05:11:48.744Z",
"modified": "2026-11-05T01:18:33.550Z"
}
One interesting observation is that I can see the full rule source content being appended to the main IQService log file, rather than the script appearing to execute.
The same type of rule definition works successfully for ADsource1, which is configured on the same IQService server. I have also declared the rule under the nativeRules section of ADsource2.
Could you please help clarify what might be causing this behaviour?
In particular, I would appreciate guidance on:
-
Whether there are any specific
nativeRulesconfiguration requirements or differences between multiple AD sources sharing the same IQService server. -
Where exactly I should look in the IQService logs to identify why the PowerShell script is not executing.
-
Whether there are any additional IQService or PowerShell configuration settings that could prevent the AfterCreate script from being invoked.
Any troubleshooting suggestions or guidance would be appreciated.
Note : we have ISC
Thanks.