如何配置 Azure 信息保护可视标记的标签How to configure a label for visual markings for Azure Information Protection

适用范围: Azure 信息保护Applies to: Azure Information Protection

备注

为了提供统一、简化的客户体验,Azure 门户中的 Azure 信息保护客户端(经典) 和标签管理 将于 2021 年 3 月 31 日 弃用 。To provide a unified and streamlined customer experience, Azure Information Protection client (classic) and Label Management in the Azure Portal are being deprecated as of March 31, 2021. 在此时间框架内,所有 Azure 信息保护客户都可以使用 Microsoft 信息保护统一标记平台转换到我们的统一标记解决方案。This time-frame allows all current Azure Information Protection customers to transition to our unified labeling solution using the Microsoft Information Protection Unified Labeling platform. 有关详细信息,请参阅官方弃用通知Learn more in the official deprecation notice.

当文档或电子邮件中分配一个标签时,可以选择几个选项,以便方便地显示所选的分类。When you assign a label to a document or email message, you can select several options to make the chosen classification easily visible. 这些可视标记是页眉、页脚和水印。These visual markings are a header, a footer, and a watermark.

有关这些视觉标记的其他信息:Additional information about these visual markings:

  • 页眉和页脚适用于 Word、Excel、PowerPoint 和 Outlook。Headers and footers apply to Word, Excel, PowerPoint, and Outlook.

  • 水印适用于 Word、Excel 和 PowerPoint:Watermarks apply to Word, Excel, and PowerPoint:

    • Excel:水印仅在页面布局和打印预览模式及打印后可见。Excel: Watermarks are visible only in Page layout and Print preview modes, and when printed.

    • PowerPoint:水印应用于母板幻灯片,作为背景图像。PowerPoint: Watermarks are applied to the master slide, as a background image. 在“视图”**** 选项卡上的“幻灯片母版”**** 中,确保未选中“隐藏背景图形”**** 复选框。On the View tab, Slide Master, make sure that the Hide Background Graphics check box is not selected.

  • Word、Excel 和 PowerPoint 中的水印、页眉和页脚支持多行。Multiple lines are supported for watermarks, and for headers and footers in Word, Excel, and PowerPoint. 如果为 Outlook 中应用的标签页眉或页脚指定多行,这些行就会连接到一起。If you specify multiple lines for a label's header or footer that is applied in Outlook, the lines are concatenated. 在这种情况下,请考虑使用配置来为 Word、Excel、PowerPoint 和 Outlook 设置不同的视觉标记In this scenario, consider using the configuration to set different visual markings for Word, Excel, PowerPoint, and Outlook.

  • 最大字符串长度:Maximum string lengths:

    • 页眉和页脚可以输入的最大字符串长度为 1024 个字符。The maximum string length that you can enter for headers and footers is 1024 characters. 但是,Excel 的页眉和页脚的总数限制为 255 个字符。However, Excel has a total limit of 255 characters for headers and footers. 此限制包括 Excel 中不可见的字符,例如格式代码。This limit includes characters that aren't visible in Excel, such as formatting codes. 如果达到该限制,则输入的字符串不在 Excel 中显示。If that limit is reached, the string you enter is not displayed in Excel.

    • 可以输入的水印的最大字符串长度为 255 个字符。The maximum string length for watermarks that you can enter is 255 characters.

  • 你可以简单地指定文本字符串,也可以使用变量在应用页眉、页脚或水印时动态创建文本字符串。You can specify just a text string, or use variables to dynamically create the text string when the header, footer, or watermark is applied.

  • Word、PowerPoint 和 Outlook 支持使用不同颜色的视觉标记,现在 Excel 也不例外。Word, PowerPoint, Outlook, and now Excel support visual markings in different colors.

  • 视觉标记仅支持一种语言。Visual markings support one language only.

应用视觉标记的情况When visual markings are applied

对于电子邮件,从 Outlook 发送电子邮件时会应用视觉标记。For email messages, the visual markings are applied when an email message is sent from Outlook. 如果通过更改标签来转发或回复该电子邮件,则始终保留原始视觉标记。If that email message is forwarded or replied to with a change of label, the original visual markings are always retained.

对于文档,视觉标记应用如下所示:For documents, the visual markings are applied as follows:

  • 在 Office 应用中,会在应用标签时应用来自标签的视觉标记。In an Office app, the visual markings from a label are applied when the label is applied. 打开标记的文档以及首次保存该文档时,也会应用视觉标记。Visual markings are also applied when a labeled document is opened and the document is first saved.

  • 当使用文件资源管理器、PowerShell 或 Azure 信息保护扫描程序标记文档时,不会立即应用视觉标记,但在 Office 应用中打开文档以及首次保存文档时会通过 Azure 信息保护客户端应用视觉标记。When a document is labeled by using File Explorer, PowerShell, or the Azure Information Protection scanner: Visual markings are not immediately applied but are applied by the Azure Information Protection client when that document is opened in an Office app and the document is first saved.

    当你对保存在 Microsoft SharePoint、OneDrive for work 或 school 或 OneDrive for home 中的文件使用 " 自动保存 " 时,不会应用可视标记,除非你将 " 高级客户端" 设置 配置为启用分类以在后台连续运行。The exception is when you use AutoSave with Office apps for files that are saved in Microsoft SharePoint, OneDrive for work or school, or OneDrive for home: When AutoSave is on, visual markings are not applied unless you configure the advanced client setting to turn on classification to run continuously in the background.

配置标签的视觉标记To configure visual markings for a label

请按照以下说明来配置标签的可视标记。Use the following instructions to configure visual markings for a label.

  1. 如果尚未这样做,请打开新的浏览器窗口,登录到 Azure 门户If you haven't already done so, open a new browser window and sign in to the Azure portal. 然后导航到“Azure 信息保护”窗格。Then navigate to the Azure Information Protection pane.

    例如,在资源、服务和文档的搜索框中:开始键入“信息”并选择“Azure 信息保护”。For example, in the search box for resources, services, and docs: Start typing Information and select Azure Information Protection.

  2. 从 "分类 > 标签" 菜单选项:在 " Azure 信息保护-标签" 窗格中,选择包含要添加或更改的视觉标记的标签。From the Classifications > Labels menu option: On the Azure Information Protection - Labels pane, select the label that contains the visual markings you want to add or change.

  3. 在 " 标签 " 窗格中,在 " **设置视觉标记 (如页眉或页脚) ** " 部分中,为所需的视觉标记配置设置,然后单击 " 保存":On the Label pane, in the Set visual marking (such as header or footer) section, configure the settings for the visual markings that you want, and then click Save:

    • 配置一个页眉:针对“文档的此标签具有页眉”,选择“打开”(如果希望具有页眉),或“关闭”(如果不希望这样做)。To configure a header: For Documents with this label have a header, select On if you want a header, and Off if you do not. 如果选择“打开”,则指定页眉的文本、大小、字体颜色和对齐方式****。If you select On, then specify the header text, size, font, color, and alignment for the header.

    • 配置一个页脚:针对文档的此标签具有页脚,选择“打开”(如果希望具有页脚),或“关闭”(如果不希望这样做)。To configure a footer: For Documents with this label have a footer, select On if you want a footer, and Off if you do not. 如果选择“打开”,则指定页脚的文本、大小、字体颜色和对齐方式****。If you select On, then specify the footer text, size, font, color, and alignment for the footer.

    • 配置一个水印:针对文档的此标签具有水印,选择“打开”(如果希望具有水印),或“关闭”(如果不希望这样做)。To configure a watermark: For Documents with this label have a watermark, select On if you want a watermark, and Off if you do not. 如果选择“打开”,则指定水印的文本、大小、字体颜色和对齐方式****。If you select On, then specify the watermark text, size, font, color, and alignment for the watermark.

单击“保存”**** 时,更改将会自动提供给用户和服务。When you click Save, your changes are automatically available to users and services. 不再提供单独发布选项。There's no longer a separate publish option.

在文本字符串中使用变量Using variables in the text string

你可以在文本字符串中为页眉、页脚或水印使用以下变量:You can use the following variables in the text string for your header, footer, or watermark:

  • ${Item.Label},针对所选标签。${Item.Label} for the selected label. 例如:“常规”For example: General

  • ${Item.Name},针对文件名或电子邮件主题。${Item.Name} for the file name or email subject. 例如:JulySales.docxFor example: JulySales.docx

  • ${Item.Location},针对文档的路径和文件名,以及电子邮件的主题。${Item.Location} for the path and file name for documents, and the email subject for emails. 例如:\\Sales\2016\Q3\JulyReport.docxFor example: \\Sales\2016\Q3\JulyReport.docx

  • ${User.Name},针对文档或电子邮件的所有者(按 Windows 登录用户名)。${User.Name} for the owner of the document or email, by the Windows signed in user name. 例如:rsimoneFor example: rsimone

  • ${User.PrincipalName},针对文档或电子邮件的所有者(按 Azure 信息保护客户端登录电子邮件地址 (UPN))。${User.PrincipalName} for the owner of the document or email, by the Azure Information Protection client signed in email address (UPN). 例如:rsimone@vanarsdelltd.comFor example: rsimone@vanarsdelltd.com

  • ${Event.DateTime},针对设置所选标签时的日期和时间。${Event.DateTime} for the date and time when the selected label was set. 例如:2016/8/16 下午 1:30For example: 8/16/2016 1:30 PM

备注

此语法区分大小写。This syntax is case-sensitive.

提示

还可以使用 字段代码将标签名称插入 到文档或模板中。You can also use a field code to insert the label name into a document or template.

为 Word、Excel、PowerPoint 和 Outlook 设置不同的视觉标记Setting different visual markings for Word, Excel, PowerPoint, and Outlook

默认情况下,指定的视觉标记将应用于 Word、Excel、PowerPoint 和 Outlook。By default, the visual markings that you specify are applied across Word, Excel, PowerPoint, and Outlook. 但是,在文本字符串中使用“If.App”变量语句并使用值 WordExcelPowerPointOutlook 标识应用程序类型时,可以为每个 Office 应用程序类型指定视觉标记。However, you can specify visual markings per Office application type when you use an "If.App" variable statement in the text string, and identify the application type by using the values Word, Excel, PowerPoint, or Outlook. 还可以简化这些值,当想要在同一 If.App 语句中指定多个值时,这很有必要。You can also abbreviate these values, which is necessary if you want to specify more than one in the same If.App statement.

使用以下语法:Use the following syntax:

${If.App.<application type>}<your visual markings text> ${If.End}

备注

此语句中的该语法区分大小写。This syntax in this statement is case-sensitive.

示例:Examples:

  • 仅为 Word 文档设置页眉文本:Set header text for Word documents only:

    ${If.App.Word}This Word document is sensitive ${If.End}

    仅在 Word 文档页眉中,标签应用页眉文本“此 Word 文档包含敏感内容”。In Word document headers only, the label applies the header text "This Word document is sensitive". 没有页眉文本应用于其他 Office 应用程序。No header text is applied to other Office applications.

  • 为 Word、Excel 和 Outlook 设置页脚文本,为 PowerPoint 设置不同的页脚文本:Set footer text for Word, Excel, and Outlook, and different footer text for PowerPoint:

    ${If.App.WXO}This content is confidential. ${If.End}${If.App.PowerPoint}This presentation is confidential. ${If.End}

    在 Word、Excel 和 Outlook 中,标签应用页脚文本“此内容是机密的”。In Word, Excel, and Outlook, the label applies the footer text "This content is confidential." 在 PowerPoint 中,标签应用页脚文本“此演示文稿是机密的”。In PowerPoint, the label applies the footer text "This presentation is confidential."

  • 为 Word 和 PowerPoint 设置特定的水印文本,然后为 Word、Excel 和 PowerPoint 设置水印文本:Set specific watermark text for Word and PowerPoint, and then watermark text for Word, Excel, and PowerPoint:

    ${If.App.WP}This content is ${If.End}Confidential

    在 Word 和 PowerPoint 中,标签应用水印文本“此内容保密”。In Word and PowerPoint, the label applies the watermark text "This content is Confidential". 在 Excel 中,标签应用水印文本“机密”。In Excel, the label applies the watermark text "Confidential". 在 Outlook 中,标签不应用任何水印文本,因为 Outlook 不支持水印视觉标记。In Outlook, the label doesn't apply any watermark text because watermarks as visual markings are not supported for Outlook.

备注

使用 Azure 信息保护统一标签客户端时,仅可使用 Azure 信息保护门户设置 字体名称 的值。When using the Azure Information Protection unified labeling client, setting values for font name is only possible by using the Azure Information Protection portal. 当设置 字体颜色 值超出五个默认值之一时,还可以使用 Azure 信息保护门户。When setting values for font color beyond one of the five default values, is also only possible by using the Azure Information Protection portal.

设置字体名称Setting the font name

Calibri 是页眉、页脚和水印文字的默认字体。Calibri is the default font for headers, footers, and watermark text. 如果指定替代字体名称,请确保它在将应用视觉标记的客户端设备上可用。If you specify an alternative font name, make sure that it is available on the client devices that will apply the visual markings. 如果指定字体不可用,客户端将回退使用 Calibri 字体。If the font specified is not available, the client falls back to using the Calibri font.

设置字体颜色Setting the font color

可从可用颜色列表中进行选择,或输入颜色的红绿蓝 (RGB) 组成的十六进制三元色代码来指定自定义颜色。You can choose from the list of available colors or specify a custom color by entering a hex triplet code for the red, green, and blue (RGB) components of the color. 例如, #40e0d0 为青绿色的 RGB 十六进制值。For example, #40e0d0 is the RGB hex value for turquoise.

如果需要这些代码的参考,可从 MSDN web 文档的页面找到一个有用的表格 <color> 。你还可以在许多应用程序中找到这些代码,以便你编辑图片。If you need a reference for these codes, you'll find a helpful table from the <color> page from the MSDN web docs. You also find these codes in many applications that let you edit pictures. 例如,通过 Microsoft 画图,从调色板中选择自定义颜色,系统将自动显示 RGB 值,该值可供复制。For example, Microsoft Paint lets you choose a custom color from a palette and the RGB values are automatically displayed, which you can then copy.

后续步骤Next steps

有关配置 Azure 信息保护策略的详细信息,请使用配置组织的策略部分中的链接。For more information about configuring your Azure Information Protection policy, use the links in the Configuring your organization's policy section.