# Creating a Custom Entity Type in Entity Manager

Entities are the personally identifiable information (PII) types that you can discover with Risk Analysis. You can create new entity types based on the built-in entity types available in Entity Manager, or you can create entirely new entity types based on your own regular expressions.

## Procedure

1. From the Command Center navigation pane, go to Comply > Insight settings.

2. Click the Entity manager tile.

   The Entity manager page appears.

3. In the upper-right corner of the page, from the Add entity list, select Create entity.

   The Add entity section appears.

4. In Entity name, enter a name.

5. Select the method for matching the new entity:

   Method | Description | Instructions
   --- | --- | ---
   Match based on Python regular expressions. | You can use a Python regular expression to match the new type of personally identifiable information (PII) in the content. For example, to add an entity type for a custom ID number comprised of two upper-case alphabet characters followed by four digits (as in AB1234), enter `[A-Z]{2}[0-9]{4}`. For information about non-capturing groups and backslash characters, see Python Regular Expressions for Custom Entities. For more information about Python regular expressions, go to the Python documentation. | For Regular expression, enter the Python regular expression to match the entity. Tip To test your regular expression, click Test Regular Expression and then enter the regular expression and sample text in the dialog box that appears. Optional: For Custom keywords, add one or more keywords that must appear within close proximity to the entity.
   Match based on built-in entity types. | Many common entity types, such as dates and phone numbers, are built in to Entity Manager. You can select one of these entity types, and customize or narrow the match parameters using the Custom keywords field. For example, to create an entity for employment start date, select the Date entity and add keywords such as "employment" and "start". Only dates that have those keywords in close proximity in the content are identified as potential matches. | From the Derived from list, select an entity type. For Custom keywords, add one or more keywords that must appear within close proximity to the entity.
   You can apply a Python regular expression-based filtering to derived entities and exclude specific matches from a parent entity. For example, to exclude certain credit card numbers that are closed or marked as defunct in the results of an SDG job for credit card entity matching, enter `(?:(?:<credit card 1>)|(?:<credit card 2>))`. Use the non-capturing groups only for these patterns. For information about non-capturing groups, see Python Regular Expressions for Custom Entities. | From the Derived from list, select an entity type. For Regular expression, enter the Python regular expression to match the entity. Tip To test your regular expression, click Test Regular Expression and then enter the regular expression and sample text in the dialog box that appears.

6. From the Sensitivity list, select a sensitivity level for the entity.

7. Click Submit.

   The entity name appears in the Entity List.

×

Loading...