c# - List exchange 2003 mailbox rights -


How can I list the rights that a user has been assigned to the mailbox?

For example, the advertisements for users are & quot; Exchange Edwards & quot; Accounts specified in the "Mailbox rights" section of the tab; computer?

Yo, this is great stuff since there are no .NET wrappers in it (last time I Checked, which was in 1.1 hours), you have to do COM interop with CDOXM.

Here are some pseudoscopes I hope you start your brutality:

  DirectoryEntry userDirectoryEntry; // You need to do this new IExchangeMailbox exchangeMailbox = (IExchangeMailbox) userDirectoryEntry.NativeObject; IADSSecurityDescriptor Security Descriptor = (IADSSecurityDescriptor) ExchangeMailbox.MailboxRights; IADsAccessControlList acl = (IADsAccessControlList) security descriptor. DyscretionaryAcl; // In ACL foreach (IADsAccessControlEntry ACL ALC), through each AC, you will get access to each "AC" here}}  

Comments