Open rnieuweveen opened 4 months ago
Hi Rick,
We are currently working on the PowerShell v2 version of this connector. Since we are proceeding without a test environment, several adjustments will likely need to be made during the initial implementation. However, the issue you're referring to should no longer exist in the v2 version, as we no longer use multiple try-catch blocks for each action in the create script.
The v2 version will be available on GitHub soon, in a separate branch until the first implementation is complete.
new-kpnbartuser returns an error when account creation is failed. The type 'System.Collections.ListDictionaryInternal' is not supported for serialization or deserialization of a dictionary. Keys must be strings
The actual error isn't readable in HelloID, script will fail without any logging.
try to fix this with: try { $createResult = New-KPNBartUser @accountCreate -Erroraction silentlycontinue } catch { Throw "$($_)" }
This returns an understandable message, but the throw is catched with an auditmessage and the script wil continue.
https://github.com/Tools4everBV/HelloID-Conn-Prov-Target-KPN-Bart/blob/3e0bb15be04f861af04b5499a607c57053fc736c/create.ps1#L454C22-L454C24