PII rules
The PII rules view with the personal keyword list.
Description
The PII rules view lets the signed-in user list words and phrases that the gateway masks in the user messages before the messages leave Myra. The view is reachable from PII rules in the Tools & data section of the Account area (user menu → Account → PII rules) and via the direct URL /account/pii-rules (the former address /profile/pii redirects). The view is available to every role; it is hidden while an administrator views your account through impersonation.
Each entry is a personal keyword. Before a message reaches the model, the gateway replaces every match of a personal keyword with a [MYRA-CUSTOM:…] token. The same masking applies to text a tool returns to the model on your behalf — a fetched web page, a file read, a knowledge-base (RAG) chunk, a web-search result or an MCP tool result — so a protected term inside fetched content is tokenised as well (the token is restored in the answer you see). In a web-search query the model writes, a protected term is not tokenised but removed before the query leaves; a query that consists only of protected terms is not sent at all. If the model drops the square brackets and writes the bare MYRA-CUSTOM:… form, it is still restored (or replaced by [redacted] when unknown) before you see it. Your saved memories and your preferred name, work role and custom instructions are masked the same way before the gateway adds them to the system prompt; project instructions and the organization policy are system text and are not keyword-masked — see PII Protector — Stored content in the system prompt. The personal keywords apply in addition to the PII detectors that the gateway already runs.
The table lists three columns and an action column: the keyword (column Add a keyword), the Case-sensitive state, the Whole word only state, and a Delete button per row. A check mark shows an option that is on; a dash shows an option that is off. When the list is empty, the view shows the message No personal keywords yet. Anything you add will be replaced with [MYRA-CUSTOM:…] tokens before the model sees your message.
Personal keywords are private. The keywords are visible only to the user who created them.
💡 Note: Personal keywords take effect only when a PII layer is active for you — a PII detector on the gateway, or one your role adds. If neither exists, the keywords are not applied.
⚠️ Caution: A keyword is masked only where the text matches the configured options. A keyword with Whole word only enabled does not mask the keyword inside a longer word.
Adding a word from the chat
In a chat, select a word or phrase in a message (yours or an answer), right-click it and choose Add "…" to My PII configuration. The word is added to this list and is masked from your next message on, wherever your PII protection applies. The menu also offers Copy. How the word is added:
- Punctuation at the edges of the selection is dropped (
Müller,→Müller); punctuation inside stays (Max-Müller). - The selection needs at least two characters including a letter or digit, one line, and no special spaces or invisible characters; otherwise the browser's normal menu appears.
- Words shorter than five characters are added as Whole word only (
Maxdoes not maskMaximum); longer words also match inside longer words (Mülleralso masksMüllers). A selection that is part of a longer word, and a name in a script written without spaces (Chinese, Japanese, Korean, Thai, …), always matches inside longer text. The confirmation names the mode. - Matching is not case-sensitive. A word that is already on the list exactly is not added twice.
The menu appears on a mouse right-click on a desktop browser. On touch devices, with the keyboard context-menu key and in the demo, use this view instead. While impersonating a user, neither the menu nor this view is available (a personal list belongs to its owner). In Safari on a Mac, Ctrl+click shows the browser's menu; use a right-click or a two-finger click.
Personal keywords and the tenant policy
Personal keywords work together with the PII policy of the tenant. The interplay depends on whether the tenant enforces masking.
- The tenant does not enforce masking. Personal keywords apply on any gateway that runs a PII layer. In chat, the user can switch the Privacy pill to Privacy Off, or unmask individual items in the masking preview, in which case the message is sent on an unprotected route and personal keywords are not applied. See Easy chat — Privacy pill.
- The tenant enforces masking. Masking is always on for every user in the tenant. The Privacy pill is read-only and cannot be switched off, and the masking preview does not offer the unmask action — the preview response itself withholds the original values server-side, so the raw data never reaches the browser (not merely a hidden button). Personal keywords are therefore applied to the messages of the user, and to tool results, whenever the request egresses to an external AI provider. They are also applied to the search query the model sends to a web-search provider (before it leaves; if the masking fails, the search is skipped — if your keyword list cannot be loaded, the request continues without your keywords, logged, exactly as for your messages and tool results). The one exception is a request served wholly by a first-party local (Myra/EU) model: masking is skipped there even under enforcement, because the data never leaves Myra (the web-search query — by your personal keywords and the PII Protector — and other tool egress are still masked). See PII Protector — Local model legs are not masked.
💡 Note: Enforced masking is a tenant setting managed by a tenant admin. A regular user cannot turn masking off, but can still add personal keywords to extend what is masked.
Adding a keyword
Before you begin, ensure the following conditions are met:
- ☑ You are signed in.
💡 Note: A keyword can contain up to 200 bytes (fewer characters when it uses multibyte letters such as umlauts).
💡 Note: Your personal list holds at most 200 keywords. When it is full, adding fails with "Your PII list is full. Remove an entry in My PII configuration first." A pasted list that would take the total over 200 is refused as a whole, so none of its entries are added.
Proceed as follows to add a keyword:
- Enter the word or phrase in the Add a keyword text field.
- If required, select the Case-sensitive checkbox to match the keyword only in the exact letter case.
- If required, select the Whole word only checkbox to match the keyword only as a standalone word.
- Click on the Add button.
-> The new keyword appears in the list of keywords. Repeat this process for all required keywords.
💡 Note: The single field accepts a phrase with spaces and punctuation and matches it literally. To add several entries at once, use Adding a list of keywords, which accepts bare words only.
Adding a list of keywords
Before you begin, ensure the following conditions are met:
- ☑ You are signed in as a tenant administrator.
💡 Note: A list accepts up to 20 entries at a time, one word per line. Each line must be a bare word: letters and digits, plus the punctuation
@ . - _. A line with a space or any other character is not allowed here — use the single Add a keyword field for a phrase.
Proceed as follows to add a list of keywords:
- If required, select the Case-sensitive checkbox or the Whole word only checkbox. The options apply to every word of the list.
- If you want to paste the list, paste one word per line into the Add a list text field and click on the Add list button.
- If you want to upload the list, click on the Upload .txt file button and select a plain-text (
.txt) file with one word per line.- The file is added as soon as you select it. The file is scanned for malware before it is read; a blocked file shows This file was blocked by malware scanning.
-> The new words appear in the list of keywords and the message Added <count> keyword(s). appears. Words that are already on your list are skipped; if every word was already on the list, the message reads Nothing added — every word was already on your list.
If any line is not allowed, the whole list is refused: nothing is saved, not even the valid lines. The message "Nothing was saved. Fix or remove these lines and try again:" names each refused line and the reason, for example "contains a space". Your text stays in the field. Correct or remove those lines and click on the Add list button again.
Deleting a keyword
Before you begin, ensure the following conditions are met:
- ☑ You are signed in.
Proceed as follows to delete a keyword:
- Locate the keyword in the table.
- Click on the Delete button in the row.
-> The keyword is removed from the list of keywords.