Hello,
OneIM Version 8.2.1
I have a requirement to move to deactivate accounts in different OU in AD. And I have to customize the template for ADSAccount.UID_ADSContainer to implement my requirement.
Can someone help me with the code to set in ADSAccount.UID_ADSContainer template?
The ADSAccount.UID_ADSContainer template is configured as follows:
'$FK(UID_Person).UID_Department$
'$FK(UID_Person).UID_Locality$
'$FK(UID_Person).UID_ProfitCenter$
#If ORG Then
'$FK(UID_Person).UID_Org$
#End If
If CBool(Connection.Variables.Get("FULLSYNC")) = False Then
Select Case ($FK(UID_TSBBehavior).ITDataUsage:Int$)
Case 0:'do not get data from employee
Case -1:'fill property initially from the ITData of the employee
If Not $[IsLoaded]:Bool$ Then
Value = TSB_ITDataFromOrg($UID_Person$, $UID_TSBAccountDef$, Base.TableDef.Columns("UID_ADSContainer"))
End If
Case 1:'update property depending on ITData of the employee
Value = TSB_ITDataFromOrg($UID_Person$, $UID_TSBAccountDef$, Base.TableDef.Columns("UID_ADSContainer"))
End Select
End If
Thanks.