none
Editing and showing folder permissions RRS feed

  • Question

  • Hi,

    I am currently developing my first outlook add-in. This add-in should somehow show and change or add the permissions for other users to get access to the emails within.

    Is it possible to do this with an add-in and if not are there other possibilities?

    Thursday, December 27, 2018 11:14 PM

All replies

  • Not in the Outlook Object Model. In Extended MAPI (C++ or Delphi), you would need to open (IMAPIFolder::OpenProperty) the PR_ACL property as IExchangeModifyTable. You can see it in OutlookSpy - click IMAPIFolder button, go to the PR_ACL tab.

    If C++ or Delphi are not an option, you can use Redemption and its RDOFolder.ACL property:

    set Session = CreateObject("Redemption.RDOSession")
    Session.MAPIOBJECT = Application.Session.MAPIOBJECT
    set Folder = Session.GetDefaultFolder(olFolderCalendar)
    'make sure we get back an Exchange user
    set AddressEntry = Session.AddressBook.GAL.ResolveName("Joe The User")
    set ACE = Folder.ACL.Add(AddressEntry)
    ACE.Rights = ROLE_PUBLISH_EDITOR



    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!



    Friday, December 28, 2018 6:04 PM
  • Thank you for your quick answer!

    I think this helps me a lot!

    Saturday, December 29, 2018 10:51 PM