本文介绍了编辑和显示文件夹权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发我的第一个Outlook加载项。此加载项应以某种方式显示和更改或添加其他用户的权限以访问其中的电子邮件。

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?

推荐答案

如果不能选择C ++或Delphi,可以使用及其RDOFolder.ACL 属性:

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


这篇关于编辑和显示文件夹权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 14:00