Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

CreateAccountJson is not working for WINConnector to enable remote mailbox

asharma
Regular Contributor II
Regular Contributor II

Hi team, 

we are trying below syntax to enable remote mailbox in winconnector 

{
"CREATEACC": ["Script=\$pw = convertto-securestring '${PSSCRIPT_PASSWORD}' -asplaintext -force;\$mycred = new-object -typename System.Management.Automation.PSCredential -argumentlist 'Hi\\\\svc_saviynt_win',\$pw;Invoke-Command -ComputerName 'localhost' -Credential \$mycred -ScriptBlock {C:/Saviynt/SAVPSScript/EnableMailUser.ps1 ${user.username}}"],
"SuccessResponses": ["isMailboxEnabled"]
}

 

Please help with syntax as this is not working by putting the values of hostname, script location.

Let me know if you need anything more.

5 REPLIES 5

SB
Saviynt Employee
Saviynt Employee

Can you confirm the error you are getting in the logs when you run the job.


Regards,
Sahil

asharma
Regular Contributor II
Regular Contributor II

It's fixed through REST connector.

Please share JSON


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Sunil
Community Manager
Community Manager

Hi @asharma ,  
Thanks for updating the forum post with the issue fix status. Could you please update the post with more information on the solution so that other users facing the same or similar problem can benefit? 

AG
Regular Contributor II
Regular Contributor II

Hi @asharma  - How did you mapped the success & unsuccess response for REST using ["isMailboxEnabled"]