The current code does not allow for update of the InSite attribute of the AFAS user. Only whenever the account has been correlated.
See line 140 in the update.ps1.
The following code is present:
if (($account.PSObject.Properties.Name -Contains 'InSi') -and ($actionContext.AccountCorrelated -eq $true)) { $updateAccountFields += "InSi" }
The same goes for the OutSite attribute (Site)
The second part should not be present if you want to actually update that attribute in a regular update event.
The current code does not allow for update of the InSite attribute of the AFAS user. Only whenever the account has been correlated.
See line 140 in the update.ps1.
The following code is present:
if (($account.PSObject.Properties.Name -Contains 'InSi') -and ($actionContext.AccountCorrelated -eq $true)) { $updateAccountFields += "InSi" }The same goes for the OutSite attribute (Site)
The second part should not be present if you want to actually update that attribute in a regular update event.