Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST connector API call

Edith
New Contributor II
New Contributor II

Hello,

I need your help in the bellow problem:

- when updating a specific custom property for a user from UI, I have to call an API from a client application that provision a group in that application. 

- after the UI update, a rule is triggered that calls a REST connection. I am using updateuserJSON 

{
"actions": {
"Update Login": {
"call": [
{
"name": "Update Login",
"callOrder": 0,
"connection": "auth",
"url": "https://mymachine/SaviyntApp/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"scriptname.ps1 \\\"${user.customproperty13}\\\" \\\"${user.customproperty12}\\\" \\\"${user.customproperty10}\\\" \"}",
"httpHeaders": {
"Authorization": "Basic abcd"
},
"httpContentType":"application/x-www-form-urlencoded",
"SuccessResponses":{
"statusCode":[
204,
200,
201,
202,
203
]
},
"unsuccessResponses":{
"odata~dot#error.code":[
"Request_BadRequest",
"Authentication_MissingOrMalformed",
"Request_ResourceNotFound",
"Authorization_RequestDenied",
"Authentication_Unauthorized",
"404",
"500",
"401",
"302"
]
}
}
]
}
}
}

The task is created correctly in Saviynt, but the provisioning job is failing with no messages in the log viewer. 

Can you please let me know if the approach is correct? and what should I modify in the JSOn so I can have some messages in the logs?

Thank you

 

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Please share logs in text format
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️ ‼️‼️Refer https://forums.saviynt.com/t5/help/faqpage/title/WhenNotifyAboutPII



Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor II
Honored Contributor II

Hi @Edith check the connection name it should match the name present in connection json and the user update json.

stalluri
Valued Contributor II
Valued Contributor II

@Edith 
Try passing the whole Path where the  script is located.

"{\"Script\": \"F:\/scripts\/scriptname.ps1 '${connection.userName}' '${connection.password}' '${user.customproperty13}' '$${user.customproperty12}' '${user.customproperty10}'\"}"

 '/' we have to escape with '\' slash.


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.