Study guide
Deze inhoud is nog niet vertaald.
Study guide for chapter 16 of the Securing Salesforce: Sharing and Visibility course. Read the seven modules first; this page helps you check what stuck.
About this study guide. It’s built only from this course’s own content and the published Salesforce exam guide’s list of objectives. It is never based on real exam questions, and it doesn’t claim to know what’s on the exam. If you’ve taken the exam, please don’t send me questions from it: the certification agreement forbids sharing them, and memorizing answers is the wrong way to become an architect anyway.
This chapter supports one objective: record access overrides, in the exam section Access to Records, the biggest section at 39% of the exam. Chapter 6 covered the overrides that open records, View All and Modify All. This chapter covers the tools that take access away, and the exam guide’s own list of objectives names them only as something beyond its named items. Know them anyway: they decide what an override can and can’t get past.
For the Exam
Section titled “For the Exam”Tick them off as you go. Each one links to where it’s taught.
Where a restriction rule sits (supports REC-9)
- I know a restriction rule filters the records a user already has through sharing, permanently, after all of sharing. (After all of sharing)
- I know where it applies: links, list views, lookups, records, related lists, reports, search, SOQL and SOSL. (Everywhere the user looks)
- I know what goes past it: code in system mode, View All Records and View All Data, Modify All Records and Modify All Data. (What goes straight past it)
- I know a rule writes no share row, and UserRecordAccess doesn’t consider restriction rules. (No row)
- I know the objects: custom and external objects, quotes, contracts, events, tasks, time sheets and time sheet entries, not accounts, cases or opportunities; and that a rule on a parent doesn’t restrict its child objects. (Which objects)
Designing the criteria (supports REC-9)
- I know user criteria (a field on the user, compared with the current user) and permission criteria (a custom permission, true or false). (The user)
- I know the form: EQUALS only, no AND, OR or formulas; comma lists; 15-character IDs; no fields on the parent; Owner:User, since queues aren’t supported; a missing lookup grants no access. (The rules of the form)
One rule per user (supports REC-9)
- I know the limits: two active restriction rules per object in Enterprise and Developer, five in Performance and Unlimited. (Two shots, or five)
- I know where restriction rules do what nothing else can: filtering the children of a master-detail (a rule on the custom detail object, since Controlled by Parent is otherwise all or nothing), external objects, and a flag on the record such as soft-deleted or confidential, designed as the one rule for each user. (Where restriction rules shine)
- I know only one restriction or scoping rule per object should apply to a user, that Salesforce doesn’t validate it, and that if two apply only one is observed. (Salesforce doesn’t check)
- I know rules move by change set or unlocked package, and org-specific IDs must be changed in the target org. (Moving rules between orgs)
Activities, contracts, external objects (supports REC-9)
- I know Salesforce calls restriction rules the best way to make contracts, tasks and events private, as with competing sales teams on one account. (Why the defaults can’t do it, Competing teams)
- I know what still shows: event subjects with Show Details, subordinates’ events, Chatter publisher names, search shortcuts; and to use the Activity Timeline. (What still shows through)
- I know restriction rules on external objects need the OData 2.0, OData 4.0 or Cross-Org adapters, don’t include defaults or sharing, and that disabling search is recommended. (External objects)
- I know the performance test: run the record criteria as a query, add three to five percent for large volumes, and index a slow field. (Test the filter)
- I know search crowding: SOSL and global search look at up to 2,000 matching records first and apply access after, so a user with narrow access, from sharing or a rule, can miss a record they can open from a list view; a query doesn’t; a more specific term or one object helps. (When search can’t find it)
Scoping rules (supports REC-9)
- I know scoping rules filter list views and reports when Filter by scope is selected, and SOQL, and don’t restrict access. (A filter, not a lock)
- I know the objects (custom objects, accounts, cases, contacts, events, leads, opportunities, tasks) and editions (Performance, Unlimited and Developer, not Enterprise). (When it helps, The details)
- I know to delete the list views and reports that use Filter by scope before disabling a scoping rule. (Turning one off)
Testing and troubleshooting (supports REC-9)
- I know the test: a user the rule applies to, one it doesn’t, and an admin with View All, against a matching and a non-matching record. (Three users, two records)
- I know the Sharing Hierarchy can list users a restriction rule blocks, and confirms it with a message. (Is it a rule?)
Beyond the Exam
Section titled “Beyond the Exam”The exam is the floor, not the ceiling. These are the habits from this chapter that an architect needs, whether or not a question ever asks about them.
- Ask whether the model should open less before reaching for a restriction rule.
- Use a custom permission for a rule that protects anything sensitive, not a field anyone can edit.
- Compute one field when the real rule needs an AND, and keep it filled with automation.
- Check for overlaps before every second rule on an object, and after every reorganization.
- Keep confidential detail out of subjects and names, which calendars, Chatter and search can still show.
- Ask the other system’s owners before a rule goes on an external object.
- Never let a field users change for themselves drive a restriction rule.
- Keep the three-user test with the rule, and add the agent’s user as a fourth.
Words to Know
Section titled “Words to Know”| Term | In one line |
|---|---|
| Restriction rule | A permanent filter on the records a user can access through sharing |
| Scoping rule | A default filter on list views, reports and SOQL that users can switch |
| User criteria | The field on the user that decides whom a rule applies to |
| Permission criteria | A custom permission, true or false, that decides whom a rule applies to |
| Record criteria | The single comparison that decides which records the user keeps |
| Filter by scope | The list view and report option that applies a scoping rule |
| RestrictionRule | The metadata type for both kinds, with enforcementType Restrict or Scoping |
| UserRecordAccess | The object you query for a user’s access; it ignores restriction rules |
| Search crowding | SOSL and global search limit the matches first and apply access after, so a user with narrow access can miss a record they can open |
Check Yourself
Section titled “Check Yourself”Short scenarios in the style of the course. Decide your answer before you open it.
1. A team wants a restriction rule so some users can't see certain cases. What do you tell them?
Cases aren’t among the objects restriction rules support. Look at the sharing model instead: a branch of its own, an owner with no role, or a queue. Reread Which objects, and how many and chapter 6, module 5.
2. A restriction rule hides confidential contracts from the sales team, but a sales manager with View All on contracts sees them. Is the rule broken?
No. View All Records and View All Data see past restriction rules, and so does code in system mode. Take the permission away, or accept that they see them. Reread What goes straight past it.
3. The rule needs "my region AND not confidential." The rule editor won't take it. What do you do?
Restriction rules support only EQUALS, with no AND or OR. Compute one field with a flow that says both, and filter on that. Reread The rules of the form.
4. Two active rules on one object both match a user. What does the user see?
Only one rule is observed, and you don’t choose which, so they could see records they shouldn’t. Design so only one can match. Reread Salesforce doesn’t check.
5. A rule deployed from a sandbox to production matches nobody. What's the likely cause?
An org-specific ID, such as a role, profile or record type ID, in the criteria. Change it in the target org, or compare by something that travels, like a record type name. Reread Moving rules between orgs.
6. Two sales teams share accounts and mustn't see each other's tasks. Activity defaults are Private. Why can they still see them, and what fixes it?
With a Private activity default, anyone who can read the related record can read its activities. A restriction rule on tasks and events, by role or by a team field, filters them. Reread Competing teams on one account.
7. A restriction rule hides a team's events, but another user still sees their subjects on a calendar. Why?
With the Show Details calendar access level, users see the subject of all events, regardless of restriction rules. Reread What still shows through.
8. An external object built with the Salesforce Connect custom adapter needs a restriction rule. Can you add one?
No. Only the OData 2.0, OData 4.0 and Cross-Org adapters support restriction rules. Reread External objects.
9. A business owner asks for a scoping rule on opportunities so reps can't see other regions' deals. What do you say?
A scoping rule doesn’t restrict access; reps can switch it off and still open every opportunity sharing gives them. “Can’t see” needs the sharing model. Reread A filter, not a lock.
10. UserRecordAccess says a user can read a contract, but they get an error opening it. Where do you look?
A restriction rule: UserRecordAccess doesn’t consider them. The record’s Sharing Hierarchy can list the user as blocked. Then find which rule’s user criteria match them. Reread Is it a rule?
Explore
Section titled “Explore”- Salesforce Certified Platform Sharing and Visibility Architect Exam Guide (opens in a new tab), Salesforce Help (checked 2026-11-26)
The official list of objectives and their weights. Always check the current version before you book an exam.
