Create and manage data masking rules

Note

The feature availability information is as follows.

Dynamics 365 Contact Center—embedded Dynamics 365 Contact Center—standalone Dynamics 365 Customer Service
Yes Yes Yes

Use data masking to block sensitive data such as credit card information, social security number (SSN), or even profanity in a conversation. You can create a masking rule and define a regular expression to identify the sensitive information and replace it with the masked characters. Any masked text in a conversation is also masked in the conversation transcript. Data masking works for chat and asynchronous channels.

Masking rules can be configured to apply to messages sent by a customer, an agent, or both. You must make sure that the masking rules you want applied are set to Active; otherwise, they won't apply to the selections you make.

Data masking rules.

You can choose to:

  • Mask private agent data from the customer: Data the agent sends is masked for both the customer and agent for live chat and async channel messages.
  • Mask private customer data from the agent: Data the customer sends is masked for both the customer and agent for live chat, but only for the user interface of the agent when using async channels.

The following masking rules are provided out of the box:

  • Credit Card: Masks the credit card number, if provided in a message.
  • Email: Masks the email address, if provided in a message.
  • SSN: Masks the SSN, if provided in a message.

As an administrator, you can delete or modify the out-of-the-box masking rules and create new masking rules.

Note

  • Only an administrator can access and edit data masking rules.
  • Only 10 data masking rules, including the rules provided out of the box, can exist in Omnichannel for Customer Service.

Create a data masking rule

Create a masking rule.

  1. In the site map of Customer Service admin center or Contact Center admin center, in Agent experience, select Productivity.

  2. Select Manage for Data masking.

  3. In Masking rules, select New Masking Rule.

  4. On the New Masking Rule page, provide the following information:

    • Name: The name of the masking rule.

    • Description: An optional description of the masking rule.

    • Regular expression: A regular expression to identify the data to be masked.

  5. To test the data masking as defined by the specified regular expression, enter a value in the Enter test data field. The masked value is displayed in the Masked test data field. By default, the number sign (#) is used to mask sensitive data.

    Email masking rules.

  6. Select Save.

Manage data masking rules

After a masking rule is created, you can edit, activate, deactivate, or permanently delete it.

Manage masking rules.

  1. Under Masking rules, select the ellipsis to see the options for managing an existing masking rule.

  2. To activate, deactivate, or delete a masking rule, select the rule, and then select the appropriate action from the list.