CDOEXM and C#. NET - Mailbox rights
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
CDOEXM and C#. NET - Mailbox rights

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
TM
Guest





Posted: Mon Jan 24, 2005 9:09 pm    Post subject: CDOEXM and C#. NET - Mailbox rights Reply with quote

Greetings, I've more or less figured out how to get a list of users who
have access to a particular mailbox (code below), but I'm stumped as to
how to get a list of mailboxes 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.Secure);

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>");

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB