![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]()
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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Maximilian"" wrote in message ... 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. |
#3
|
|||
|
|||
![]()
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? "Ken Slovak - [MVP - Outlook]" 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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Maximilian"" wrote in message ... 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. |
#4
|
|||
|
|||
![]()
The access properties are exposed that way, SendAs or ReceiveAs are purely
server side properties so they aren't in the object model. They mean nothing in the case of a PST file for example, and only relate to Exchange. There may be better ways than using LDAP, such as WebDAV or Exchange Web services or a cmdlet, depending on what version of Exchange is being used. I don't do that much with that sort of thing so that's why I suggested asking about that in an Exchange development group. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Maximilian"" wrote in message ... 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? |
#5
|
|||
|
|||
![]()
On the MAPI level (C++ or Delphi), you can open the
PR_EMS_AB_PUBLIC_DELEGATES_BL_O and PR_EMS_AB_PUBLIC_DELEGATES properties as IMAPITable objects. Redemption (url below) exposes these as RDOAddressEntry.Delegates and RDOAddressEntry.IsDelegateFor collections - http://www.dimastr.com/redemption/rd...dressentry.htm Folder level access settings can be retrieved by opening the PR_ACL_TABLE property as IExchangeModifyTable from the IMAPIFolder objeect (IMAPIFolder::OpenProperty). Redemption exposes ACL through the RDOFolder.ACL collection: http://www.dimastr.com/redemption/rdo/rdoacl.htm -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Maximilian"" wrote in message ... 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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
View other contacts (Other mailbox) you have permissions or delege | Sheri | Outlook - Using Contacts | 0 | June 25th 08 06:18 PM |
Delegation and Send on Behalf Permissions - Other users Mailbox | Gus Whitehouse | Outlook - General Queries | 0 | October 4th 07 02:50 AM |
How can I configure calendar permissions for an additional mailbox? | yoda_the_webmaster | Outlook - General Queries | 1 | January 20th 07 12:47 PM |
Can admin set mailbox permissions using CDO? | [email protected] | Outlook and VBA | 2 | September 25th 06 10:57 PM |
Permissions - Mailbox | Chris Briant | Outlook - General Queries | 0 | July 9th 06 01:42 PM |