将共享策略应用于 Exchange Online 中的邮箱Apply a sharing policy to mailboxes in Exchange Online

共享策略对用户与组织外人员共享日历的方式进行控制。管理员应用于用户邮箱的共享策略决定了用户可以共享的访问级别,以及可以与谁共享。如果不做任何更改,则所有用户都可以使用电子邮件地址邀请任何人查看其日历。如果创建了新的共享策略,必须将该策略应用到邮箱,才能生效。将共享策略应用到单个用户邮箱。管理员还可以禁用用户的共享策略,以阻止对日历的外部访问。Sharing policies control how your users share their calendars with people outside your organization. The sharing policy that an admin applies to the user's mailbox determines what level of access a user can share and with whom. If you don't change anything, then all users can invite anyone with an email address to view their calendar. If you create a new sharing policy, you have to apply that policy to mailboxes before it takes effect. Sharing policies are applied to individual user's mailboxes. An admin can also disable a user's sharing policy to prevent external access to calendars.

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

您想执行什么操作?What do you want to do?

使用 Exchange 管理中心将共享策略应用于一个邮箱Use the Exchange admin center to apply a sharing policy to one mailbox

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到收件人 > 邮箱Go to recipients > mailboxes.

  3. 在列表视图中,选择您希望的邮箱,然后单击编辑编辑图标In the list view, select the mailbox you want, and then click EditEdit icon.

  4. 用户邮箱,单击邮箱功能In User Mailbox, click mailbox features.

  5. 共享策略列表中,选择您想要应用至该游戏的共享策略。In the Sharing policy list, select the sharing policy you want to apply to this mailbox.

  6. 单击保存以将共享策略应用。Click save to apply the sharing policy.

使用 Exchange 管理中心将共享策略应用于多个邮箱Use the Exchange admin center to apply a sharing policy to multiple mailboxes

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到收件人 > 邮箱Go to recipients > mailboxes.

  3. 在列表视图中,按住 Ctrl 键选择多个邮箱。In the list view, hold the Ctrl key while you select multiple mailboxes.

  4. 在细节窗格中,将为批量编辑配置邮箱属性。向下滚动,单击更多选项In the details pane, the mailbox properties will be configured for bulk edit. Scroll down to click More options.

  5. 共享策略下单击更新Under Sharing Policy, click Update.

  6. 批量分配共享策略,请从列表中选择共享策略In bulk assign sharing policy, select the sharing policy from the list.

  7. 单击保存将共享策略应用于所选邮箱。Click save to apply the sharing policy to the selected mailboxes.

使用 Exchange 命令行管理程序将共享策略应用于一个或多个邮箱Use the Exchange Management Shell to apply a sharing policy to one or more mailboxes

本示例将共享策略 Contoso 应用于 Barbara 的邮箱。This example applies the sharing policy Contoso to Barbara's mailbox.

Set-Mailbox -Identity Barbara -SharingPolicy "Contoso"

本示例找到市场部门中的所有用户邮箱,然后应用 Contoso Marketing 共享策略。This example finds all user mailboxes in the Marketing department and then applies the sharing policy Contoso Marketing.

Get-Mailbox -Filter {Department -eq "Marketing"} | Set-Mailbox -SharingPolicy "Contoso Marketing"

本示例显示所有应用了 Contoso 共享策略的邮箱,并将用户分类放置到仅显示其别名和电子邮件地址的表中。This example shows all mailboxes that have the sharing policy Contoso applied, and it sorts the users into a table that displays only their aliases and email addresses.

Get-Mailbox -ResultSize unlimited | Where {$_.SharingPolicy -eq "Contoso"} | format-table Alias, EmailAddresses

有关语法和参数的详细信息,请参阅 Set-MailboxGet-MailboxFor detailed syntax and parameter information, see Set-Mailbox and Get-Mailbox.

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

要检查是否成功将共享策略应用至用户邮箱,可进行以下操作之一:To verify that you have successfully applied the sharing policy to a user mailbox, do one of the following:

  • 在 Exchange 管理中心,转到收件人 > 邮箱,然后选择共享策略应用于邮箱。单击编辑编辑图标,单击邮箱功能,然后确认正确的共享策略显示共享策略中。In the Exchange admin center, go to recipients > mailboxes, and then select the mailbox to which you applied the sharing policy. Click EditEdit icon, click mailbox features, and then confirm that the correct sharing policy displays in the Sharing policy.

  • 运行以下 Exchange 命令行管理程序命令验证共享策略分配给用户邮箱。验证_SharingPolicy_参数中列出了正确的共享策略。Run the following Exchange Management Shell command to verify the sharing policy was assigned to a user mailbox. Verify that the correct sharing policy is listed for the SharingPolicy parameter.

    Get-Mailbox <user name> | format-list
    

提示

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