Sub topic 16
Reviewing and Configuring Protections as an Admin
This chapter assumes you know Salesforce setup basics: permission sets, profiles, objects and fields, and the Setup menu. It also assumes you have read the earlier chapters on masking, prompt defense, zero data retention, toxicity detection, and the audit trail. Here the focus moves from how each control works to what an admin can review and change.
Menu names, setting labels, and defaults change between releases. Treat the paths in this chapter as a guide and confirm them in your org and in current Salesforce documentation.
What an admin can and cannot control
Not every Trust Layer protection is a setting. Some are built into the platform. Others depend on configuration in your org. Knowing which is which tells you where to spend review time.
| Protection | Typically controlled by | Admin action |
|---|---|---|
| Zero data retention with model providers | Salesforce agreements with providers | Review and understand. You cannot toggle it per prompt. |
| Prompt defense | Platform defaults plus prompt content | Review prompt templates and agent instructions. |
| Secure data retrieval | Your permissions and sharing model | Configure and test. |
| Data masking | Org setup, where available | Choose which data types are masked and review the result. |
| Toxicity detection | Platform, with logged scores | Review the scores and reports. |
| Audit trail and feedback data | Setup, where available | Turn on, scope, and review. |
The rows that depend on your org are the ones this chapter covers in detail: permissions, masking, and audit.
Start with the Einstein setup
Generative AI features are normally off until an admin enables them. A typical sequence in Setup:
- Turn on Einstein generative AI features for the org.
- Enable Agentforce and the agents you plan to use.
- Review the model options available to your org and which ones your features use.
- Configure the Trust Layer settings that your edition exposes, such as masking and audit.
Do this in a sandbox first when you can. Changes to masking or grounding can alter prompts and the output they produce, so test before production users see them.
Review who the agent runs as
Secure data retrieval depends on the identity of the running user. For many agents, such as an employee-facing agent, that is the user who asked the question. Some agent types run as a designated user instead. If so, that user's access is what limits grounding, so a broad integration or service user widens what the agent can see.
For each agent, check:
- Which user or user type the agent runs as.
- Which permission sets and profiles that user has.
- Which objects and fields the user can read, and which records sharing exposes.
- Whether the agent's actions can create or update records, and what that user is allowed to change.
The Trust Layer does not make an over-permissioned user safe. It passes along the access you gave.
Test permissions with a restricted user
A review is only convincing if you test it. A practical method:
- Pick a user with narrow access, for example a sales rep without access to a sensitive field.
- Ask the agent a question whose answer would require that field.
- Check whether the response, and the grounded prompt in any available logs, contain the field's value.
- Repeat with an admin-level user and compare.
If the restricted user receives data they should not, fix the permission set, field-level security, or sharing rule. Do not fix it by editing the prompt text.
Configure data masking deliberately
Masking replaces detected sensitive values with placeholders before the prompt goes to the model. When you configure it, consider these points:
- Choose data types with a purpose. Masking names and email addresses reduces exposure but also removes context the model might need.
- Check detection limits. Pattern-based and entity-based detection can miss values in free text, misspelled values, or formats it does not expect. Masking is not a guarantee.
- Test with realistic text. Use sample cases that look like your real records and see which values are replaced.
- Check the demasked output. Placeholders should be restored correctly. If a response contains a raw placeholder such as
PERSON_0, record it and investigate.
The topic spine's masking example shows the expected shape: the model sees PERSON_0 and EMAIL_0, and the user sees the real values after demasking.
Sent to the LLM:
Summarize the case for PERSON_0 (EMAIL_0).
Shown to the user:
Summarize the case for Maria Lopez ([email protected]).Note that masking trades usefulness for protection. If a prompt asks the model to reason about a person's name, such as sorting customers alphabetically, masked values may give poorer results.
Use the audit trail and feedback data
The audit trail records interactions so you can review them later. Depending on how your org is set up, it can include the prompt, the response, masking details, toxicity scores, and user feedback. Data may be stored in Data Cloud, so audit setup may involve Data Cloud licensing and permissions.
A useful review routine:
- Confirm the audit trail is enabled and storing data.
- Decide who can see it. Audit records can contain sensitive prompt content, so restrict access.
- Sample interactions on a schedule, for example weekly.
- Look for toxicity scores that stand out, masking that did not happen, and negative user feedback.
- Trace each concern back to a cause: a permission, a prompt template, an agent instruction, or data quality.
The following table maps common findings to the likely fix.
| Finding | Likely cause | Where to fix |
|---|---|---|
| Response includes data the user should not see | Over-broad access or sharing | Permission sets, field-level security, sharing rules |
| Sensitive value reached the model unmasked | Value not detected or data type not selected | Masking configuration, data entry practices |
| Raw placeholder in the response | Demasking mismatch | Prompt design, report through support |
| Offensive or flagged output | Model output or malicious input | Agent instructions, review process, report |
| Incorrect but confident answer | Poor or stale source data | Data quality, grounding sources, agent topics |
A review workflow
The diagram shows how the review parts connect.
Common mistakes
- Assuming defaults are enough. Defaults vary, and a feature that is available is not always on.
- Reviewing only the model. Most real findings trace to permissions, data quality, or agent design, which are your responsibility.
- Giving the audit trail wide access. The log can hold the same sensitive content you are trying to protect.
- Skipping the sandbox. Masking and grounding changes can change output quality.
- Treating one test as proof. Test several user types and several phrasings.
Exercise
An agent runs as an integration user with broad read access. A sales rep asks it about an account, and the response includes a field the rep cannot normally see. Which Trust Layer control failed, and what should the admin change?
Show answer
No Trust Layer control failed. Secure data retrieval used the access of the user the agent runs as, and that user had broad access. The admin should reduce the agent user's permissions (permission sets, field-level security, sharing) to the least needed, or change the agent's design so access reflects the person asking. Editing the prompt text would not fix the cause.
Exercise
During an audit review you find a response that shows the text "EMAIL_0" instead of an address. What does this suggest, and what do you do?
Show answer
It suggests demasking did not restore a placeholder, so the value was masked but not mapped back in the response. Record the interaction, test with similar prompts in a sandbox, check how the prompt is built, and report the issue to Salesforce Support if it repeats.