Search code examples
active-directoryexchange-serveroutlook-addinmapioutlook-redemption

Query Send as permissions from Outlook COM add-in?


From within the context of an Outlook COM add-in, what is the best way to check if the current user has Send as permissions to another account?

I'm aware of the Redemption RDOAddressEntry.Delegates (PR_EMS_AB_PUBLIC_DELEGATES) and RDOAddressEntry.IsDelegateFor (PR_EMS_AB_PUBLIC_DELEGATES_BL_O) properties which correspond to the Send on behalf of permissions.

I also found this question How do I query effective permissions on an Active Directory Object? hinting that is should be possible to extract the Send as permissions from AD. But perhaps there is an easier way?


Solution

  • Those are you only choices - either Extended MAPI (directly in C++ or Delphi or indirectly through Redemption) or the AD (which can be a PITA if your code is not running in the context of the domain user).