Hi all,
Can anyone share VB examples of how to add a SecWinAD alias to a user account? Our 5K+ users have Enterprise aliases but we are in need of bulk-adding WinAD.
I’ve seen java examples to add SecEnterprise, but if anyone can share a VB.net/VBA equivalent of that java code to add WinAD, that would be very helpful.
Figured this would be akin to adding a new property to SI_ALIASES and tried the following. It doesn’t work. Where am I going wrong?
Set oSessionManager = CreateObject(“CrystalEnterprise.SessionMgr”)
Set oSess = oSessionManager.Logon(“username”, “pwd”, “hostname”, “secEnterprise”)
Set iStore = oSess.Service("", “InfoStore”)
queryString = “Select * from CI_SYSTEMOBJECTS where SI_KIND=‘User’”
Set CMSObjects = iStore.Query(queryString)
'test for 1st user in CMSObjects–
CMSObjects.Item(1).Properties.Item(“SI_ALIASES”).Properties.Add “secWinAD”, “CN=test,OU=Standard Users,OU=Users,OU=TEST,OU=TEST,DC=test,DC=com”, cePropFlagBag
iStore.Commit (CMSObjects)
Any help would be greatly appreciated!