编辑和显示文件夹权限 [英] Editing and showing folder permissions

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

问题描述

我目前正在开发我的第一个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?

推荐答案

不在Outlook对象模型中。在扩展MAPI(C ++或Delphi)中,您需要打开(IMAPIFolder :: OpenProperty)PR_ACL属性为

IExchangeModifyTable
。您可以在
OutlookSpy
中看到它 - 单击IMAPIFolder按钮,转到PR_ACL选项卡。

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.

如果不能选择C ++或Delphi,可以使用
Redemption
及其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


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆