Which IIQ version are you inquiring about?
8.4P3
Please share any images or screenshots, if relevant.
String iqServiceHost = "v02waiiqui01q.mgmnonprod.com";
int iqServicePort = 6061;
String replaceString = "Hello World";
String APPLICATION_NAME = "AD";
String empId = "603050";
HashMap dataMap = new HashMap();
Application app = context.getObject(Application.class, APPLICATION_NAME);
//Process powerShellProcess = Runtime.getRuntime().exec(command);
//powerShellProcess.getOutputStream().close();
//return "Success";
Rule ruleObj = context.getObject(Rule.class, "PS_Get_LastLogon3");
String rulesrc=ruleObj.getSource();
dataMap.put("postScript",ruleObj);
dataMap.put("Application",app.getAttributes());
AccountRequest accountRequest = new AccountRequest();
accountRequest.setApplication(APPLICATION_NAME);
accountRequest.setOperation(AccountRequest.Operation.Modify);
accountRequest.add(new AttributeRequest("empNum", ProvisioningPlan.Operation.Set, empId));
dataMap.put("Request",accountRequest);
RPCService service = new RPCService(iqServiceHost, iqServicePort, false, true);
service.setConnectorServices(new sailpoint.connector.DefaultConnectorServices());
RpcRequest request = new RpcRequest("ScriptExecutor", "runAfterScript", dataMap);
System.out.println("** Before execute "+request.toXml());
RpcResponse response = service.execute(request);
System.out.println("** After execute response ** " +response);
return "Done";
Please share any other relevant files that may be required (for example, logs).
Attached the IIQ service logs
IQSerivceLogs.txt (16.7 KB)
Share all details about your problem, including any error messages you may have received.
I am running the IQ powershell script from the server but getting script executor not enabled
In PROD i am able to execute the powershell but in nonprod i am getting issues, so i compared PROD and nonPROD IQservice files i see only diff is Script files in PROD but those not in nonprod so coped those files into nonprod and tried but no luck, so am i missing anything in the configuration level ?
