ConnectorBeforeCreate rule problem in AD Source

I have upload the ConnectorBeforeCreate rule to AD Source,when I create AD account,I encounter the error.The message is here:


When I remove the ConnectorBeforeCreate rule,the ISC work well.I think something wrong in ConnectorBeforeCreate rule.
my request body is here:
requestBodyUploadRule.json (1.1 KB)

Hi @TOPTYU ,

Could you please share us the complete rule?

myConnectorBeforeCreateRuleScript.ps1 (1.3 KB)

my manager find the problem is Execution Policy.ISC will download your beforecreaterule script to AD host and excute the script.Login AD host and excute the command “Get-ExecutionPolicy” in powershell.If you see the result is Restricted,it means the windows can not excute powershell script.Therefore,you need to “Set-ExecutionPolicy RemoteSigned” to solve.