Ok, but feels like thats something that should have been exposed in the
object model thou. The problem is that I started with reading (LDAP) from the
AD directly but couldn't access the properties of the exchange - only the
ordinary stuff so that why I thought that this would be accessible through
the outlook Object model.
Do you know of any example on how to obtain this data through LDAP?
wrote:
> That's not directly exposed in the Outlook 2007 object model. You can use
> the Folder.PropertyAccessor() object on these properties, both are PT_LONG
> (int32) that are bit flag values:
> PR_ACCESS "http://schemas.microsoft.com/mapi/proptag/0x0FF40003"
> PR_ACCESS_LEVEL "http://schemas.microsoft.com/mapi/proptag/0x0FF70003"
> The DASL property tags for the properties are what you'd supply to
> PropertyAccessor().
> You then have to interpret the bit flags.
> The same properties are also available on individual items, and on Store the
> PR_ACCESS_LEVEL property is available. The bit flags such as MAPI_MODIFY are
> in the mapidefs.h header file that's in most of the Windows and Exchange
> SDK's.
> However, that won't tell you some properties such as SendAs or ReceiveAs
> permissions. For those you'd need to query the server. For that you could
> use an LDAP query, or WebDAV or Exchange Web Services or a cmdlet, depending
> on what version of Exchange is being queried. For more on that sort of stuff
> you need to post in an Exchange development group such as
> microsoft.public.exchange.development.
> >
>
> "Maximilian"" <Maximilian"> wrote in message
> news:0B492551-997F-42D5-9444-75B2A77A80A1@microsoft.com...
> > Hi,
> > Im using VSTO to build an add in for Outlook 2007.
> > The problem In my add in is that I need to know which permissions the
> > users
> > has.
> > For example: I need to know if the user has permission to "Send As" and I
> > need to get this information runtime in code.
> > After spending more time I intended to learn this by searching I now hope
> > that someone here has an answer.
>