This is code behind ccc_isUS attribute in ADSAccount table. This works and properly sets to 1 (Integer) for US citizen and 0 for non-US citizens in One Identity.
Dim isUS As Integer
isUS = 0
If "US".Equals($FK(UID_Person).CCC_citizenship$) Then
isUS = 1
End If
Value = isUS
We synchronize ccc_isUS to Active Directory attribute corpUS which is an Integer. The problem is that when it synchronizes with Active Directory non-US citizen (ccc_isUS = 0) the corpUS attribute value gets deleted from AD. Is there any way to write a value of zero to an integer attribute in AD?