We have use case to set AD password & share the password in email to manager. We are using custom connector rule to trigger the PowerShell script in IQ service, but we are unable to trigger it with the help after create rule & not able to see any information on that event In CCG logs to troubleshoot. Is there any other place we can see the logs related to the Custom connector rule please suggest. Let us know if there are prerequisites and any precaution need to be taken when using this approach.
FYI: The script is working fine when we execute it directly on windows box(powershell.exe)
Hi @Chaitanya_Jaya , you could route the logs of after create script to a log file within IQservice directory ( the place where IQservice has been installed)
Thanks @prashanthrns Actually we have already added the part of code in After create rule script but there were no log file getting generated in the path.
Hi Jaya,
Is the Powershell script running with the proper Admin permission’s ? If you open the IQService Services → Log on → Make sure you have your admin user having admin right able to execute.
If this is urgent, you can implement a temporary workaround by adding your script to Task Scheduler and configuring it to run on an hourly basis.
Within the script, include the following PowerShell code snippet to detect any newly created accounts in Active Directory within the last hour:
# Define the time window (1 hour ago)
$timeWindow = (Get-Date).AddHours(-1)
# Get users created within the last 1 hour from Active Directory
Get-ADUser -Filter {whenCreated -ge $timeWindow} -Property whenCreated, UserPrincipalName, GivenName, Surname |
ForEach-Object {
# Add your custom logic here
}
This will help you capture and act on new AD accounts as a stopgap until a permanent solution is in place.
For custom connector rules triggering PowerShell scripts via IQService, check the IQService logs located on the SailPoint server under the IQService log directory for detailed error info. Also review the Connector Configuration Gateway (CCG) logs, but IQService logs typically show script execution results. Ensure your rule is properly configured to invoke the IQService and that permissions allow script execution. Confirm that the IQService Windows service is running and has the correct execution context. Always handle passwords securely—avoid sending them in plain email and consider encryption or secure delivery methods.