Hi there,
I have a listbox with a list of users which retrieve from Active Directory which I want to be able to use as the destination users in the next activity. How I retrieve Active Directory user to listbox in smartform, I write code to retrieve users of specific group(IWORKS) but it fail ,it return all users of domain
ADUM.K2UserManager ADUM=new ADUM.K2UserManager();
SourceCode.K2UMI.IK2Users users;
userListAD.Items.Clear();
users=ADUM.FindSecurityUsers("KALSOFIWORKS",null,null,null,null);
if(users!= null) {
foreach(SourceCode.K2UMI.IK2User user in users)
{
userListAD.Items.Add(user.Name.ToString());
}
}
what is wrong with that code ? Can anyone help me?
Thanks & Regards
Mumtaz Alam
How to fill k2dropdown list box with active directory group
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
