Hi @SoumyaSoumya,
I am sorry for replying late. I did configure your script in my machine and it is working fine without any issues.
Please find attached workflow for more details which you can try to test and let us know if it still gives you any error.
Also in your script you are missing ) bracket for the below
param (
[string]$name
Please let us know if you are still facing issues.
PowershellScriptExecution20251112.json (2.4 KB)
Workflow Input:
{
“identity”: {
“id”: “ee769173319b41d19ccec6cea52f237b”,
“name”: “john.doe”,
“type”: “IDENTITY”
},
“changes”: [
{
“attribute”: “department”,
“oldValue”: “sales”,
“newValue”: “marketing”
},
{
“attribute”: “manager”,
“oldValue”: {
“id”: “ee769173319b41d19ccec6c235423237b”,
“name”: “william.wilson”,
“type”: “IDENTITY”
},
“newValue”: {
“id”: “ee769173319b41d19ccec6c235423236c”,
“name”: “ed.engineer”,
“type”: “IDENTITY”
}
},
{
“attribute”: “email”,
“oldValue”: “john.doe@hotmail.com”,
“newValue”: “john.doe@gmail.com”
}
]
}
Workflow Output:
[
{
“type”: “WorkflowExecutionStarted”,
“timestamp”: “2025-11-12T07:27:51.717049139Z”,
“attributes”: {
“input”: {
“changes”: [
{
“attribute”: “department”,
“newValue”: “marketing”,
“oldValue”: “sales”
},
{
“attribute”: “manager”,
“newValue”: {
“id”: “ee769173319b41d19ccec6c235423236c”,
“name”: “ed.engineer”,
“type”: “IDENTITY”
},
“oldValue”: {
“id”: “ee769173319b41d19ccec6c235423237b”,
“name”: “william.wilson”,
“type”: “IDENTITY”
}
},
{
“attribute”: “email”,
“newValue”: “john.doe@gmail.com”,
“oldValue”: “john.doe@hotmail.com”
}
],
“identity”: {
“id”: “ee769173319b41d19ccec6cea52f237b”,
“name”: “john.doe”,
“type”: “IDENTITY”
}
}
}
},
{
“type”: “ActivityTaskScheduled”,
“timestamp”: “2025-11-12T07:27:51.765562541Z”,
“attributes”: {
“displayName”: “Windows Server”,
“input”: {
“inputForPag_address”: “192.168.56.108”,
“inputForPag_auth_password”: “”,
“inputForPag_auth_type”: “ntlm”,
“inputForPag_auth_username”: “”,
“inputForPag_command_timeout_seconds”: 30,
“inputForPag_configuration_name”: “Microsoft.PowerShell”,
“inputForPag_kdc_address”: “”,
“inputForPag_kdc_port”: 88,
“inputForPag_kdc_protocol”: “tcp”,
“inputForPag_kdc_realm”: “”,
“inputForPag_output_format”: “json”,
“inputForPag_script_arguments”: {
“name”: “CN=Cheryl Cruz,OU=Munich,OU=Europe,OU=Demo,DC=seri,DC=sailpointdemo,DC=com”
},
“inputForPag_script_path”: “C:\SailPoint\getPerms.ps1”,
“inputForPag_use_ssl”: false,
“inputForPag_verify_cert”: false,
“pagCommandType”: “pag:windows_server:execute_powershell_script”,
“pagInstanceId”: “c04af2a0-f64b-4d7e-9210-5c0a4ebcac66”,
“pagSpecId”: “7e479f41-e367-4e20-85c8-9e2936aa4658”,
“param_connType”: “paramInline”,
“param_credential”: {
“mapping”: {
“auth_password”: “password”,
“auth_username”: “username”
},
“paramID”: “73a26c18-bf25-4886-9bd4-a77f072f1692”,
“paramType”: “1.1”,
“refID”: “5111efbe-2355-4771-b350-9dca0a97479e”
},
“param_credentialType”: “paramSPS”,
“param_kerberos”: {
“mapping”: {
“kdc_address”: “kdcAddress”,
“kdc_port”: “port”,
“kdc_protocol”: “transport”,
“kdc_realm”: “realm”
},
“paramID”: “”,
“paramType”: “2.5”
},
“param_kerberosType”: “paramInline”
},
“stepName”: “windowsServer”,
“task”: “sp:pag-windows-server”,
“technicalName”: “Windows Server”
}
},
{
“type”: “ActivityTaskStarted”,
“timestamp”: “2025-11-12T07:27:51.776366042Z”,
“attributes”: {
“attempts”: 1,
“displayName”: “Windows Server”,
“stepName”: “windowsServer”,
“task”: “sp:pag-windows-server”,
“technicalName”: “Windows Server”
}
},
{
“type”: “ActivityTaskCompleted”,
“timestamp”: “2025-11-12T07:27:58.519975771Z”,
“attributes”: {
“displayName”: “Windows Server”,
“result”: {
“count”: 1,
“data”: {
“Message”: “CN=Cheryl Cruz,OU=Munich,OU=Europe,OU=Demo,DC=seri,DC=sailpointdemo,DC=com”,
“Status”: “Success”
},
“encrypted”: false
},
“stepName”: “windowsServer”,
“task”: “sp:pag-windows-server”,
“technicalName”: “Windows Server”
}
},
{
“type”: “ActivityTaskScheduled”,
“timestamp”: “2025-11-12T07:27:58.578449483Z”,
“attributes”: {
“displayName”: “End Step - Success”,
“input”: {},
“stepName”: “End Step - Success”,
“task”: “sp:internal:operator”,
“technicalName”: “End Step - Success”
}
},
{
“type”: “ActivityTaskStarted”,
“timestamp”: “2025-11-12T07:27:58.590237793Z”,
“attributes”: {
“attempts”: 1,
“displayName”: “End Step - Success”,
“stepName”: “End Step - Success”,
“task”: “sp:internal:operator”,
“technicalName”: “End Step - Success”
}
},
{
“type”: “ActivityTaskCompleted”,
“timestamp”: “2025-11-12T07:27:58.603463719Z”,
“attributes”: {
“displayName”: “End Step - Success”,
“result”: {},
“stepName”: “End Step - Success”,
“task”: “sp:internal:operator”,
“technicalName”: “End Step - Success”
}
},
{
“type”: “WorkflowExecutionCompleted”,
“timestamp”: “2025-11-12T07:27:58.627207023Z”,
“attributes”: {
“result”: {
“ffb5ffc5-9230-4f22-ba28-11656b861d78”: “019a76f6-b7a5-70bc-b735-b84258694191”,
“trigger”: {
“changes”: [
{
“attribute”: “department”,
“newValue”: “marketing”,
“oldValue”: “sales”
},
{
“attribute”: “manager”,
“newValue”: {
“id”: “ee769173319b41d19ccec6c235423236c”,
“name”: “ed.engineer”,
“type”: “IDENTITY”
},
“oldValue”: {
“id”: “ee769173319b41d19ccec6c235423237b”,
“name”: “william.wilson”,
“type”: “IDENTITY”
}
},
{
“attribute”: “email”,
“newValue”: “john.doe@gmail.com”,
“oldValue”: “john.doe@hotmail.com”
}
],
“identity”: {
“id”: “ee769173319b41d19ccec6cea52f237b”,
“name”: “john.doe”,
“type”: “IDENTITY”
}
},
“windowsServer”: {
“error”: null,
“result”: {
“count”: 1,
“data”: {
“Message”: “CN=Cheryl Cruz,OU=Munich,OU=Europe,OU=Demo,DC=seri,DC=sailpointdemo,DC=com”,
“Status”: “Success”
},
“encrypted”: false
},
“warnings”: null
}
}
}
}
]