Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/31/2024 06:48 AM
Hi All,
We have Windows Connector to enable remote mailbox after AD account is created. We have written the Powershellscript to enable the mailbox and placed it in the CREATEACCOUNTJSON below
{
"CREATEACC": [
"script=\$pw=convertto-securestring '${PSSCRIPT_PASSWORD}' -asplaintext -force;\$mycred=new-object -typename System.Management.Automation.PSCredential-argumentlist '<Username>',\$pw;\$Session=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://XXXXXX/PowerShell/ -Authentication Kerberos -Credential \$mycred;Invoke-Command -Session \$Session -ScriptBlock{enable-remotemailbox -Identity '${user.username}' -remoteroutingaddress '${task.accountName}'}"
],
"SuccessResponses": "No results returned"
}
When the new Account request is created for WINPS, it enables the remotemailbox successfully but create account task is failing.
We think it has to do success response value in create account JSON.
We have tried below successresponses but it did not work, any input on how to debug or what might be the issue in this case ?
"SuccessResponses": { "OBJECTTOREAD": "get(0).PSShowComputerName", "SUCCESSVALUE": "TRUE"
"SuccessResponses": "No results returned"
"SuccessResponses": { "OBJECTTOREAD": "get(0).PSComputerName ", "SUCCESSVALUE": "<Machine Name>"
02/01/2024 10:22 PM
Hi @ashutoshkumar16,
We are checking on your request and we will keep you posted.
02/05/2024 03:15 AM
Hi @ashutoshkumar16,
Kindly share more details and snapshot of the logs/error as well.
02/08/2024 01:20 AM
Upon further investgation, We can see the successful response comming to the saviynt in the log but some how it is not able to read response.
Below is the response comming in the logs
,"PSShowComputerName":"True",
Below is the success value we have in create account JSON which is still failing
SuccessResponses": { "OBJECTTOREAD": "get(0).PSShowComputerName", "SUCCESSVALUE": "TRUE"
02/06/2024 03:02 AM
02/07/2024 02:14 PM
Hi @DixshantValecha,
Any updates on this request?
02/08/2024 11:03 PM
Hi @ashutoshkumar16,
It appears that there was an issue while creating an account with the name 202***@<DomainName>. The error message indicates that the API call resulted in a false response, and an error occurred during the account creation process.
Here are some observations from the log:
To troubleshoot further, consider the following steps:
Review the API Call:
Check the Error Details:
Inspect the Environment:
Password Policy:
Connection Attributes:
02/13/2024 03:22 AM
Hi @DixshantValecha ,
In the createaccountJSON we have Script to enable the RemoteMailBox, which is enabling remotemailbox successfully.
So, API Call, Enviroment and connection is correctly configured and to verify that we have also traced the logs and we are getting successful response back to saviynt.
PFB.
,"PSShowComputerName":"True",
Below is the success value we have in create account JSON which is still failing
SuccessResponses": { "OBJECTTOREAD": "get(0).PSShowComputerName", "SUCCESSVALUE": "TRUE"
and PSShowComputerName is also is in the response.
Somehow saviynt is not able to read the response correctly. Please check.
And We are not using ACCOUNTEXISTJSON and passwordpolicy.
Thanks,
Ashutosh
02/21/2024 09:51 PM - edited 02/21/2024 09:52 PM
Hi @ashutoshkumar16,
It seems like you’re having an issue with Saviynt not being able to read the response correctly, even though PSShowComputerName is in the response and the SUCCESSVALUE is set to TRUE.
Here are a few things you could check:
Whitespace or Special Characters: Sometimes, invisible characters like whitespace or special characters in the response might cause issues. Make sure the response doesn’t contain any such characters.