# Aftercreate/Aftermodify script/Rules is not triggering

**URL:** <https://developer.sailpoint.com/discuss/t/aftercreate-aftermodify-script-rules-is-not-triggering/185054>\
**Category:** SHF Discussion and Questions\
**Tags:** rules, sailpoint-identity-security\
**Created:** [October 10, 2025, 11:37am UTC](https://developer.sailpoint.com/discuss/t/aftercreate-aftermodify-script-rules-is-not-triggering/185054 "2025-10-10T11:37:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnujothi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vishnujothi/32/30372_2.png) [@vishnujothi](https://developer.sailpoint.com/discuss/u/vishnujothi)\
**Post date:** [October 10, 2025, 11:37am UTC](https://developer.sailpoint.com/discuss/t/aftercreate-aftermodify-script-rules-is-not-triggering/185054/1 "2025-10-10T11:37:48Z")

</div>

Context: We are trying to migrate one of our IQservice to a new server.

As part of it I am testing the provisioning of users in Active Directory.  
And while all the provisioning and deletion of user accounts in AD is going through as expected, the Aftercreate and Aftermodify powershell script are not triggering in the new IQService machine.

What could be the reason for this strange behavior?

So far we have ruled out or verified the following things.

- The IQ service server connection parameters.
- Access permission of service account used to connect to the IQService server
- The required connection ports
- The file path of the powershell scripts.
- Even reinstalled the IQService.

I am pondering if I need to reinstall Client/Server authentication certificate to rule out possible TLS issue, But I did feel like it is not the issue since the VA to IQservice server SSL port test was successful.

What could cause this Issue? Have anyone else came across something like this? Any Suggestions on how to solve this?

---

<div class="post-metadata">

**Author:** ![sukanta\_biswas](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sukanta_biswas/32/24596_2.png) [@sukanta\_biswas](https://developer.sailpoint.com/discuss/u/sukanta_biswas)\
**Post date:** [October 10, 2025, 12:06pm UTC](https://developer.sailpoint.com/discuss/t/aftercreate-aftermodify-script-rules-is-not-triggering/185054/2 "2025-10-10T12:06:12Z")

</div>

@vishnujothi -

Since AD CRUD is working but the **AfterCreate/AfterModify PowerShell** isn’t firing on the new IQService host, the connector → IQService round-trip is fine; the failure is almost certainly **on the IQService box or in the source’s script configuration**. Here’s a focused runbook that usually flushes out the culprit fast.

* * *

## Quick wins (the usual culprits)

1. **Script hook actually enabled on the Source**

- In ISC → **Connections → Sources → (your AD source)**:

1. **Execution policy / script trust**

- On the new server (open both 64-bit and 32-bit consoles just to be safe):

- Make sure **LocalMachine** or **Process** isn’t set to `AllSigned` or `Restricted`.

- If the scripts were copied from another machine or downloaded, **unblock them** :

- To test quickly (temporarily):

1. **Service account context**

- Confirm the **Windows service “SailPoint IQ Service”** is running under the intended **domain service account** (not LocalSystem if your script needs domain access).

- That account needs **Log on as a service** , local **Read/Execute** permission on the script file/folder, and network share rights if the script touches UNC paths.

- If the script uses the **ActiveDirectory module** , ensure **RSAT / AD PowerShell module** is installed and available in **the same architecture** IQService uses (more on x86 vs x64 below).

1. **AppLocker / WDAC / AV**

- If the org enforces **AppLocker** or **Windows Defender Application Control** , PowerShell may be in **Constrained Language Mode** or blocked entirely.

1. **32-bit vs 64-bit mismatch**

- Some environments end up launching **32-bit PowerShell** ; modules like _ActiveDirectory_ may only be installed in 64-bit.

- In your script’s first lines, log the bitness:

- If you need to force 64-bit, explicitly call:

1. **Path & quoting**

- If the path has spaces, ensure the **source config** quotes it properly. Prefer a simple path like:

* * *

## Prove whether the hook fires at all

1. Create a **trivial script** on the new host:

```auto
# C:\SailPointScripts\_ping.ps1
"[$(Get-Date -Format o)] hello from $env:COMPUTERNAME as $env:USERNAME 64bit=$([Environment]::Is64BitProcess)" |
  Out-File C:\SailPointScripts\_ping.log -Append -Encoding utf8
Exit 0

```

1. Point **AfterCreate** (and/or **AfterModify** ) to that file and provision a test user.

- If `_ping.log` **does not** update, the script **isn’t being invoked** → focus on policy blocks, permissions, execution policy, or the source toggle/path.

- If it **does** update, your original script likely fails early (module missing, path not found, etc.). Keep logging and add `Start-Transcript` for more detail.

* * *

## IQService diagnostics

- **IQService logs** (default install dir) often show entries like “invoking external script.” If they’re too quiet, enable **DEBUG/TRACE** in `IQService.exe.config` / log4net config (varies by version), restart the service, and repro.

- **Windows Event Viewer** :

- If you see **PowerShell 7** (`pwsh`) on the box and you rely on Windows modules (like ActiveDirectory), prefer **Windows PowerShell 5.1** (`powershell.exe`) for compatibility.

* * *

## Environment mismatches vs the old server

Things that often differ after a migration:

- **RSAT / ActiveDirectory** module not installed (or only in 64-bit while caller is 32-bit).

- **Credential context** changed (LocalSystem vs domain svc acct).

- **ExecutionPolicy** locked by GPO on new OU.

- **AppLocker/WDAC/InTune** policies stricter on the new host.

- **Antivirus** blocks `powershell.exe` for services.

- **Script path** points to an old drive letter or a share the new service account can’t reach.

- **TLS/cert** : not relevant to script invocation (that’s local). Since the AD ops are succeeding and VA↔IQService SSL test passes, **reinstalling the IQService certs won’t fix a non-firing script**.

* * *

## Minimal verification checklist

- Source has **AfterCreate/AfterModify** set and **enabled** on the **new** host path.

- **Test ping script** writes to a log when you provision/modify.

- `Get-ExecutionPolicy -List` allows execution (scripts unblocked).

- **Service account** runs IQService and can read/execute the script; UNC shares accessible.

- No **AppLocker/WDAC/AV** block; PowerShell event logs are clean.

- Correct **bitness** and **modules** present (RSAT AD).

- IQService logs show **“invoking external script”** (enable DEBUG if needed).

Cheers!!!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [December 9, 2025, 12:06pm UTC](https://developer.sailpoint.com/discuss/t/aftercreate-aftermodify-script-rules-is-not-triggering/185054/3 "2025-12-09T12:06:28Z")

</div>

Closed on December 9, 2025, 12:06pm UTC

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