Greetings, I've more or less figured out how to get a list of users who
have access to a particular user's mailbox (code below), but I'm
stumped as to how to get a list of users that a particular user has
access to. In other words, if I'm finding out info for user jdoe, I
can get a list of users who have access to jdoe's mailbox, but I can't
get a list of mailboxes that jdoe can access. MUCH thanks to any who
can help!
Blessings,
TM
I'm using C# .NET, DirectoryServices, and CDOEXM. I've also tried
webdav to no avail.
Existing code:
DirectoryEntry de = new
DirectoryEntry("LDAP://10.0.0.42/CN=Users,DC=mysub,DC=mydom,DC=com","Administrator" ,"password",
System.DirectoryServices.AuthenticationTypes.Secur e);
DirectoryEntry user = de.Children.Find("CN=Administrator", "user");
CDOEXM.IMailboxStore mailbox = (CDOEXM.IMailboxStore)
user.NativeObject;
System.Array ary = (System.Array) mailbox.Delegates;
Response.Write(ary.Length + "<br>");
for (int i=0; i<ary.Length; i++)
Response.Write(ary.GetValue(i) + "<br>");