管理 outlook 的外接程序用户访问Manage user access to add-ins for Outlook

您可以使用 Exchange 管理中心 (EAC) 或 Exchange PowerShell outlook 管理用户对加载项访问。You can use the Exchange admin center (EAC) or Exchange PowerShell to manage user access to add-ins for Outlook.

  • 使用 EAC,您可以为您的用户组织级别管理基本加载项访问设置。例如,您可以配置外接程序是启用还是禁用的用户。您还可以指定是否外接程序是必需还是可选为您的用户。Using the EAC, you can manage basic add-in access settings for your users at an organizational level. For example, you can configure whether an add-in is enabled or disabled for your users. You can also specify whether an add-in is required or optional for your users.

  • 使用 Exchange 命令行管理程序或 Exchange Online PowerShell 中,您可以管理您可以使用 EAC 中,所有设置,以及其他设置。例如,您可以在组织中限制为特定用户的可用性。With the Exchange Management Shell or Exchange Online PowerShell, you can manage all the settings that you can with the EAC, as well as other settings. For example, you can limit availability to specific users in your organization.

有关更多管理任务,请参阅 适用于 Outlook 的应用程序For additional management tasks, see Add-ins for Outlook.

在开始之前,您需要知道什么?What do you need to know before you begin?

  • 估计完成时间:5 分钟。Estimated time to complete: 5 minutes.

  • 有关 EAC 的详细信息,请参阅Exchange Admin Center in Exchange 2013Exchange 管理员中心在 Exchange OnlineFor more information about the EAC, see Exchange Admin Center in Exchange 2013 or Exchange admin center in Exchange Online.

  • 若要了解如何在本地 Exchange 组织中打开 Exchange Management Shell,请参阅打开命令行管理程序。若要了解如何使用 Windows PowerShell 连接到 Exchange Online,请参阅Connect to Exchange Online PowerShell 中To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Shell. To learn how to use Windows PowerShell to connect to Exchange Online, see Connect to Exchange Online PowerShell.

  • 您需要执行此过程之前为其分配权限。若要查看所需的权限,请参阅permissions主题中的"outlook 加载项"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Add-ins for Outlook" entry in the Recipients permissions topic.

  • 若要了解可能适用于此主题中过程的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

遇到问题了吗?请在 Exchange 论坛中寻求帮助。 请访问以下论坛:Exchange ServerExchange OnlineExchange Online Protection。.Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection..

指定外接程序是可用、已启用还是已禁用Specify whether an add-in is available, enabled, or disabled

使用 EAC 指定外接程序是可用、已启用还是已禁用Use the EAC to specify whether an add-in is available, enabled, or disabled

  1. 在 EAC 中,导航到" 组织">" 外接程序"。In the EAC, navigate to Organization > Add-ins.

  2. 在列表视图中,选择要更改其设置的外接程序,然后单击" 编辑"编辑图标In the list view, select the add-in that you want to change settings for, and then click EditEdit icon.

  3. 如果不想让用户使用外接程序,请清除" 允许组织内用户使用该外接程序"复选框,然后单击" 保存"。If you don't want your users to use the add-in, clear the Make this add-in available to users in your organization check box, and then click Save.

  4. 如果想让用户能够使用外接程序,请选中" 允许组织内用户使用该外接程序"复选框,然后选择所需的选项。If you want your users to be able to use the add-in, select Make this add-in available to users in your organization, and then select the option you want.

    • 可选,默认情况下启用: 使用此设置,如果您想要让用户关闭外接程序。Optional, enabled by default: Use this setting if you want to allow your users to turn off the add-in.

    • 可选,默认情况下禁用: 使用此设置,如果您想要让用户打开的加载项。Optional, disabled by default: Use this setting if you want to allow your users to turn on the add-in.

    • 强制,总是处于启用状态。用户不能禁用此外接程序: 如果您不希望用户,将会关闭加载项使用此设置。Mandatory, always enabled. Users can't disable this add-in: Use this setting if you don't want your users to turn off the add-in.

  5. 键入所需的项目保留天数。Click Save.

使用 Exchange PowerShell 指定是否外接程序可用、 已启用或禁用Use Exchange PowerShell to specify whether an add-in is available, enabled, or disabled

首先,运行以下命令以查找所有加载项的组织中安装 Outlook 的显示名称和外接程序 Id。First, run the following command to find the display names and add-in IDs for all the add-ins for Outlook installed for your organization.

Get-App -OrganizationApp | Format-List DisplayName,AppId

AppId值是唯一标识外接程序的 GUID (例如, fe93bfe1-7947-460a-a5e0-7a5906b51360)。您可以使用的AppId值确定并更改的外接程序设置。The AppId value is a GUID that uniquely identifies the add-in (for example, fe93bfe1-7947-460a-a5e0-7a5906b51360). You use the AppId value to identify and change the settings of the add-in.

若要禁用和外接程序来自所有用户隐藏,替换_<AppId> 与实际AppId值并运行以下命令:To disable and hide an add-in from all your users, replace <AppId>_ with the real AppId value and run the following command:

Set-App -Identity <AppId> -OrganizationApp -Enabled $false

若要启用外接程序,默认情况下,但让用户可以将其关闭,替换_<AppId> 与实际AppId值并运行以下命令:To enable an add-in by default, but allow your users to turn it off, replace <AppId>_ with the real AppId value and run the following command:

Set-App -Identity <AppId> -OrganizationApp -Enabled $true -DefaultStateForUser Enabled

默认情况下禁用外接程序,但允许用户将其打开,替换_<AppId> 与实际AppId值并运行以下命令:To disable an add-in by default, but allow your users to turn it on, replace <AppId>_ with the real AppId value and run the following command:

Set-App -Identity <AppId> -OrganizationApp -Enabled $true -DefaultStateForUser Disabled

如果您希望外接程序是需要为您的用户,替换_<AppId> 与实际AppId值并运行以下命令:If you want the add-in to be required for your users, replace <AppId>_ with the real AppId value and run the following command:

Set-App -Identity <AppId> -OrganizationApp -Enabled $true -DefaultStateForUser AlwaysEnabled

有关语法和参数的详细信息,请参阅 Set-appFor detailed syntax and parameters, see Set-app.

您如何知道操作成功?How do you know this worked?

若要验证您是否已成功配置外接程序,请使用以下步骤之一:To verify that you've successfully configured an add-in, use either of the following steps:

  • 在 EAC 中,导航到组织 > 加载项并查看用户默认值提供至列中的值。In the EAC, navigate to Organization > Add-ins and review the values in the User Default and Provided To columns.

  • 在 Exchange Online PowerShell 中,运行以下命令并验证DefaultStateForUserEnabled属性的值:In Exchange Online PowerShell, run the following command and verify the values of the DefaultStateForUser and Enabled properties:

    Get-App -OrganizationApp | Format-List DisplayName,AppId,Enabled,DefaultStateForUser
    

使用 Exchange PowerShell 限制为特定用户外接程序可用性Use Exchange PowerShell to limit add-in availability to specific users

若要限制的外接程序向特定用户的可用性,不能使用 EAC。您只能使用 Exchange 命令行管理程序或 Exchange Online PowerShell。To limit the availability of an add-in to specific users, you can't use the EAC. You can only use the Exchange Management Shell or Exchange Online PowerShell.

本示例监测 LinkedIn 外接程序假想的AppIdac83a9d5-5af2-446f-956a-c583adc94d5e到通讯组的成员组名为 Marketing。This example limits the LinkedIn add-in with the hypothetical AppId value ac83a9d5-5af2-446f-956a-c583adc94d5e to the members of the distribution group named Marketing.

$a = Get-DistributionGroupMember Marketing
Set-App -Identity ac83a9d5-5af2-446f-956a-c583adc94d5e -OrganizationApp -ProvidedTo SpecificUsers -UserList $a.Identity -DefaultStateForUser Enabled

有关语法和参数的详细信息,请参阅 Set-appFor detailed syntax and parameters, see Set-app.

您如何知道操作成功?How do you know this worked?

若要验证已成功限制某些用户外接程序能否,在 Exchange PowerShell 中运行以下命令并验证ProvidedToUserList属性的值:To verify that you've successfully limited add-in availability to specific users, run the following command in Exchange PowerShell and verify the value of the ProvidedTo and UserList properties:

Get-App -OrganizationApp | Format-List DisplayName,AppId,Enabled,DefaultStateForUser,ProvidedTo,UserList