Updating ArcGIS Portal 10.6 Identity Store ends up in Error code 500?

Error:

The user store configuration or group store configuration is invalid. 

Code: 500

-This is one of the strangest error I came across while trying to integrate Enterprise Active Directory to Portal.

And, my configuration is something like as in the ESRI Portal documentation with a minor modification of “isPasswordEncrypted” to “true” as below:

For User Store
{
  "type": "WINDOWS",
  "properties": {
    "userPassword": "secret",
    "isPasswordEncrypted": "true",
    "user": "mydomain\\winaccount",
    "userFullnameAttribute": "cn",
    "userEmailAttribute": "mail",
    "caseSensitive": "false"
  }
}
For Group Store:
{
  "type": "WINDOWS",
  "properties": {
    "isPasswordEncrypted": "true",
    "userPassword": "secret",
    "user": "mydomain\\winaccount"
  }
}

Like any other IT professional, whenever you’re given an option of encrypting password in a configuration, you’ll respond “true” to that. But, with ESRI software, you need to be careful while deviating from the documentation example.

           <<<<<<< It simply won’t work. >>>>>>>>>>

It’s quite surprising that somebody actually forgot to use that option of “isPasswordEncrypted” in the code while creating the Portal application.

So, in order to Update Configuration for Update Identity Store, you will need to keep “isPasswordEncrpted” option to “false”.