<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Garvita Rai on Medium]]></title>
        <description><![CDATA[Stories by Garvita Rai on Medium]]></description>
        <link>https://medium.com/@garvita11.rai?source=rss-ad22e0b223fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Garvita Rai on Medium</title>
            <link>https://medium.com/@garvita11.rai?source=rss-ad22e0b223fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:26:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@garvita11.rai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Taming Salesforce Permissions: A Smarter Approach to OLS and FLS]]></title>
            <link>https://medium.com/@garvita11.rai/taming-salesforce-permissions-a-smarter-approach-to-ols-and-fls-88201527f109?source=rss-ad22e0b223fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/88201527f109</guid>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[salesforcetips]]></category>
            <category><![CDATA[salesforce-admin]]></category>
            <category><![CDATA[permission-set-group]]></category>
            <category><![CDATA[permission-set]]></category>
            <dc:creator><![CDATA[Garvita Rai]]></dc:creator>
            <pubDate>Fri, 01 May 2026 11:45:09 GMT</pubDate>
            <atom:updated>2026-05-01T11:45:09.017Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>If you’ve spent any time administering a mid-to-large Salesforce org, you already know the feeling: a new field needs to be added, and suddenly you’re staring down a list of thirty permission sets wondering which ones need updating. Multiply that by every new object, every new persona, every edge case — and what should be a simple configuration task turns into a sprawling maintenance nightmare.<br> <br> The good news? There’s a structured way to think about this. And even when Salesforce has postponed retiring permissions on Profiles by the **Spring ’26 release**, now is exactly the right time to get your permission architecture in order.</p><h3>The Problem With How Most Orgs Handle Permissions</h3><p>As organisations grow, they accumulate personas — Admins, Sales Users, Support Engineers, Security Users, and more. The naive approach is to create one permission set per persona and pack everything into it. That works until the moment something changes, and then you’re updating the same setting across a dozen permission sets, hoping you don’t miss one.<br> <br> The root issue is that permissions tend to get bundled by <strong>who needs them</strong> rather than <strong>what they represent</strong>. That conflation is what makes maintenance painful.<br> <br> The fix is to unbundle them.</p><h3>Three Categories of Permission Sets That Actually Scale</h3><p>Rather than creating one monolithic permission set per persona, think of permissions as falling into three distinct buckets:</p><ol><li><strong>Object-Level Permission Sets<br></strong>These are permission sets scoped to a specific object (or a logical grouping of objects that are always accessed together — like Account and Contact). The key question when grouping is: <strong>will users always need the same level of access to both objects simultaneously?</strong> If yes, group them. If not, keep them separate.<br>Example: Create two permission sets for the Case object — <strong>Object:</strong> <strong>Read Case Records</strong> and <strong>Object:</strong> <strong>Edit Case Records</strong>. The “<strong>Edit</strong>” version grants <strong>Read, Create, </strong>and<strong> Edit </strong>on the object, plus <strong>edit</strong> access on fields that any user should be able to modify (like a description field). This becomes your <strong>baseline</strong> — the lowest common denominator that can be assigned broadly.</li><li><strong>Persona-Based Permission Sets<br></strong>These handle the exceptions — the capabilities that belong to a specific role and shouldn’t bleed into the baseline.<br><strong>Example</strong>: The <strong>Case Status </strong>field should only be editable by <strong>Support Engineers</strong>. Your <strong>Edit Case Records</strong> permission set gives everyone read access to that field, while a separate <strong>Persona: Support Engineer</strong> permission set grants edit access on top of it. Each persona’s permission set only needs to carry the <strong>delta</strong> — what makes that persona different from the baseline.</li><li><strong>Feature-Based Permission Sets<br></strong>Sometimes a permission doesn’t map neatly to a persona — it’s needed by a specific, cross-cutting set of users based on what they do, not who they are.<br><strong>Example</strong>: A subset of account managers needs to merge duplicate Accounts in the system. Rather than shoehorning this into a persona-based permission set, create a standalone feature permission set for that capability. If the requirement involves a custom UI element (like a button), pair it with a <strong>Custom Permission</strong> that controls visibility, then attach that custom permission to the appropriate feature or persona permission set.</li></ol><h3>Why This Categorisation Changes Everything</h3><p>The real payoff shows up the next time you add a new field.<br> <br> Instead of auditing every permission set in your org, you just ask: <strong>what kind of field is this?</strong><br> <br> — <strong>Generic field</strong> → update the object-level permission set once<br> — <strong>Persona-specific field</strong> → update that persona’s permission set<br> — <strong>Feature-specific field</strong> → update the feature permission set</p><p>Three categories. One update. Done.</p><h3>The Next Problem: Assignment at Scale</h3><p>Here’s where even well-structured permission sets hit a wall. You’ve done the hard work of categorising everything cleanly — but now each user needs five, six, maybe seven permission sets assigned to them. Managing individual assignments at scale is its own kind of painful.<br> <br> Enter the solution.</p><h3>Permission Set Groups: The Final Piece</h3><p>A <strong>Permission Set Group (PSG) </strong>is a bundle of permission sets that can be assigned to users as a single unit. Instead of assigning six permission sets to every new Sales User, you assign one group — and the group handles the rest.</p><p>The real power comes when things change. If a new object is introduced and two user groups need access to it, you create an object-level permission set for that object and add it to the relevant Permission Set Groups. No mass user reassignment. No risk of missing someone.<br> <br> PSGs can be organised by <strong>persona</strong> (a group that represents everything a Support Engineer needs) or by <strong>functionality</strong> (a group that represents a specific product feature). Both approaches are valid and can coexist in the same org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HX2riT_BPLtJ1Njdt9T6Vw.png" /><figcaption>Permission Set Group</figcaption></figure><h3>Muting Permission Sets: The Escape Valve</h3><p>Permission Set Groups introduced one particularly elegant tool: the <strong>Muting Permission Set.</strong><br> <br> A muting permission set sits inside a Permission Set Group and selectively revokes permissions that are otherwise granted by the group’s member permission sets. It’s the answer to the classic problem:<strong> I want to assign this group to this user, but not all of it.</strong><br> <br> <strong>Example</strong>: A PSG grants Create access on a custom object called TaskRay Projects. For a specific sub-group of users assigned to the PSG, you want to block that Create access. Rather than creating an entirely separate group, you add a muting permission set to the PSG that revokes Create for those users — without affecting users assigned to the underlying permission sets directly.<br> <br> <strong>One critical consideration</strong>: permissions have dependencies, and muting cascades. If you mute <strong>Read</strong> access on an object, Salesforce will also automatically mute <strong>Create, Edit, Delete, View All, </strong>and<strong> Modify All</strong> — because none of those actions are meaningful without the ability to read the data. Always map your dependency chain before muting, or you’ll end up revoking more than you intended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*D8eKbx3dTVubwp0sHdjZFw.png" /></figure><h3>Putting It All Together</h3><p>Here’s the mental model to carry forward:<br>1. Object Permission Sets → Baseline access, assigned broadly via PSG<br>2. Persona Permission Sets → Role-specific deltas, bundled into persona PSGs<br>3. Feature Permission Sets → Cross-cutting capabilities, feature PSGs or direct assignment<br>4. Muting Permission Sets → Surgical revocations within a PSG</p><p>This architecture won’t just survive the Profile retirement — it’ll make your org genuinely easier to maintain as it grows. New persona? Build a PSG from existing building blocks. New object? Create one permission set, drop it into the right groups. New exception? Muting permission set.<br> <br> The chaos of permission management is optional. Structure it once, and the complexity stops compounding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88201527f109" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Sharing Architecture: A Developer’s Deep Dive]]></title>
            <link>https://medium.com/@garvita11.rai/salesforce-sharing-architecture-a-developers-deep-dive-ec232b4c6a09?source=rss-ad22e0b223fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec232b4c6a09</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[visibility]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Garvita Rai]]></dc:creator>
            <pubDate>Fri, 01 May 2026 11:15:06 GMT</pubDate>
            <atom:updated>2026-05-01T11:15:06.784Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever asked yourself <em>“why can’t this user see that record?”</em> — welcome to the world of Salesforce Sharing Architecture. It’s one of the most powerful, and most misunderstood, parts of the platform.</p><p>This article walks through every layer of Salesforce’s sharing model: from organisation-wide defaults all the way down to programmatic sharing and implicit access. Whether you’re an admin troubleshooting a support ticket or an architect designing a multi-cloud org, this guide has you covered.</p><blockquote><strong>Data security in Salesforce isn’t one setting — it’s a layered system of controls. Here’s how every piece fits together.</strong></blockquote><h3>The Sharing Architecture Stack</h3><p>Think of Salesforce data access as a stack of controls, each one layered on top of the previous:</p><pre>Profiles &amp; Permission Sets  →  Object &amp; Field Level Security<br>Organisation-Wide Defaults  →  Baseline record access<br>Role Hierarchy              →  Manager inheritance<br>Sharing Rules               →  Group/Role Hierarchy-based extensions<br>Manual Sharing / Teams      →  One-off flexibility<br>Programmatic Sharing        →  Custom logic<br>Implicit Sharing            →  Automatic, non-configurable</pre><p>Let’s break each layer down.</p><h3>1. Users, Licences &amp; What They Mean for Sharing</h3><p>Not all licences play by the same rules.</p><p><strong>Community profiles</strong> operate on their own sharing model — access is granted via foreign key matches between the user and Account/Contact lookups. Admins use <em>sharing sets</em> or <em>share groups</em> to grant high-volume community users access to records.</p><p><strong>Chatter Free and Chatter External</strong> licences sit entirely outside the standard sharing model. They have no access to CRM records, don’t support roles, and therefore aren’t subject to standard sharing rules at all.</p><h3>2. Profiles and Permission Sets</h3><p>These govern <strong>object-level</strong> and <strong>field-level</strong> security — what <em>types</em> of data a user can see, and whether they can create, edit, or delete records.</p><p>Two permissions worth highlighting here:</p><ul><li><strong>View All</strong> — ignores sharing rules entirely; the user sees all records of that object</li><li><strong>Modify All</strong> — same as above, but with full edit/delete capability</li></ul><p>These are blunt instruments. Use them sparingly and deliberately.</p><h3>3. Record Ownership and Queues</h3><p>Every record in Salesforce must have exactly one owner — either a <strong>user</strong> or a <strong>queue</strong>.</p><p>Users higher in the role hierarchy inherit the same data access as their subordinates for standard objects. Queues allow teams to share workloads collaboratively; queue members and their role hierarchy superiors can view queue records from list views and claim ownership.</p><p><strong>Watch out for ownership skew.</strong> If a single user owns more than 10,000 records:</p><ul><li>That user’s record ideally should not hold a role in the hierarchy</li><li>If it must, place that role at the very top of its own isolated branch</li></ul><p>This prevents cascading performance issues during sharing recalculations.</p><h3>4. Organisation-Wide Defaults (OWD)</h3><p>OWD is your <strong>baseline</strong>. It defines the most restrictive level of access users have to each other’s records across the entire org.</p><p>Key point: <strong>OWD is the only mechanism that can restrict record access.</strong> Everything else in the sharing model works to open access up from there.</p><p>For custom objects specifically, there’s a valuable setting called <strong>“Grant Access Using Hierarchies.”</strong> When unchecked, it prevents managers from inheriting access through the role hierarchy — useful when you want strict data isolation between branches.</p><h3>5. The Role Hierarchy</h3><p>The role hierarchy ensures managers always have the same data access as their subordinates — regardless of OWD settings. It doesn’t need to mirror your org chart; it represents <em>levels of data access</em>, not reporting lines.</p><p>A few hard limits and best practices to know:</p><blockquote>SettingLimit / Best PracticeMaximum roles per org: 500 (can be increased by Salesforce)</blockquote><blockquote>Recommended internal roles: ≤ 25,000</blockquote><blockquote>Recommended external roles: ≤ 100,000</blockquote><blockquote>Recommended hierarchy depth: ≤ 10 levels</blockquote><p>When a user’s role changes, Salesforce automatically re-evaluates all relevant sharing rules to correct access — this can trigger significant recalculation jobs in large orgs, so plan role changes carefully.</p><h3>6. Public Groups</h3><p>Public groups are collections of users, roles, territories, and other groups that share a common access need. They’re one of the most flexible building blocks in sharing architecture.</p><p>A public group can include:</p><ul><li>Individual users</li><li>Roles (and their subordinates)</li><li>Portal roles and subordinates</li><li>Territories and subordinates</li><li>Other public groups (nested)</li></ul><p><strong>On nesting:</strong> groups can be nested up to five levels deep, but be cautious — deep nesting compounds performance overhead during group membership calculations. The platform-wide limit is 100,000 public groups per org.</p><p>Groups also support <strong>access protection</strong>, preventing data shared within a group from being visible to users higher in the role hierarchy above group members.</p><h3>7. Types of Sharing Rules</h3><p>Before diving in, one golden rule to commit to memory:</p><blockquote><strong>Sharing rules can only extend access — they can never restrict it.</strong></blockquote><p>This is the most important thing to understand about Salesforce sharing. If you need to <em>restrict</em> access, that’s the job of Organisation-Wide Defaults (OWD). Sharing rules only open doors; they never close them. They grant either <strong>read-only</strong> or <strong>read/write</strong> access, nothing more.</p><p>There are three types of sharing rules, each with distinct behaviour and limits:</p><h3>Owner-Based Sharing Rules</h3><p>Triggered by who owns the record. Useful for role- or group-based access patterns.</p><ul><li><em>Note:</em> Contact owner-based sharing rules don’t apply to private contacts.</li><li><strong>Limit:</strong> 300 per object</li></ul><h3>Criteria-Based Sharing Rules</h3><p>Triggered by field values on the record — not ownership. If the criteria are met, a share record is created.</p><ul><li><strong>Limit:</strong> 50 per object (shared with guest user sharing rules)</li></ul><h3>Guest User Sharing Rules</h3><p>A special subtype of criteria-based rules used to grant access to unauthenticated users (e.g. Experience Cloud guest visitors).</p><ul><li><strong>Limit:</strong> 50 per object (shared with criteria-based rules)</li></ul><h3>8. Manual Sharing</h3><p>Manual sharing lets record owners grant access to specific users on a one-off basis — great for edge cases that don’t justify a broader sharing rule.</p><p><strong>Important caveat:</strong> Manual sharing is only available in <strong>Salesforce Classic</strong>, and manual shares are <strong>dropped when record ownership changes</strong>. If your org relies heavily on manual sharing, build a process to re-apply shares after ownership transfers.</p><h3>9. Teams</h3><p>Teams allow a group of users to collaborate on an Account, Opportunity, or Case. Each team member can be granted different access levels (read-only or read/write).</p><p>A few architectural notes:</p><ul><li>Only the record owner, their superiors in the hierarchy, or admins can add team members or increase access</li><li>Creating a team member creates <strong>two records</strong> under the hood: a team record and an associated share record — critical to know if you’re managing teams programmatically</li><li>There is only <strong>one team per record</strong> — if you need multiple overlapping access groups, consider territory management or programmatic sharing</li></ul><h3>10. Enterprise Territory Management</h3><p>Territory Management adds a second, parallel hierarchy alongside the role hierarchy. When enabled, you must actively manage both.</p><p>This is most relevant for complex sales organisations where account ownership crosses geographic or vertical boundaries. Territory assignments drive both record access and forecast rollups.</p><h3>11. Programmatic Sharing</h3><p>When no declarative mechanism can meet your access requirements, programmatic sharing (historically called Apex Managed Sharing) gives you full control via code.</p><p>Common use cases include:</p><ul><li>Dynamic sharing logic based on external system data</li><li>Complex multi-criteria access rules that exceed declarative limits</li><li>Custom sharing that needs to survive ownership changes</li></ul><p>Be mindful: programmatic shares, like manual shares, require careful management. Unlike rule-based shares, they won’t automatically recalculate on standard events.</p><h3>12. Implicit Sharing</h3><p>Implicit sharing is automatic and <strong>cannot be configured, enabled, or disabled</strong> — it simply exists.</p><p>There are two directions:</p><p><strong>Parent implicit sharing:</strong> If a user can see a child record (Contact, Opportunity, Case, or Order), they implicitly gain read access to the parent Account. You can’t stop this.</p><p><strong>Child implicit sharing:</strong> Account owners gain access to that account’s child Contacts, Opportunities, and Cases. The level of access (View, Edit, or None) is defined at the role level when the role is created.</p><blockquote><strong>Implicit sharing does not apply to custom objects — only the standard Account/Contact/Opportunity/Case hierarchy.</strong></blockquote><h3>Troubleshooting: “Why Can’t This User See That Record?”</h3><p>Work through this checklist methodically before escalating:</p><ol><li><strong>Object permissions</strong> — does the user’s profile or permission set grant access to the object at all?</li><li><strong>User’s role</strong> — identify it and note where it sits in the hierarchy</li><li><strong>Record owner’s role</strong> — same; are these two roles in separate branches?</li><li><strong>Review sharing rules</strong> — is there a rule that should cover this user? Check public group membership too</li><li><strong>Teams</strong> — should this user be a team member on this record? How did the gap occur?</li><li><strong>Manual sharing</strong> — did the record change ownership recently? Manual shares are dropped on ownership transfer</li><li><strong>Territory management</strong> — is the user missing from a territory assignment? Did the record get assigned to the right territory?</li><li><strong>Programmatic shares</strong> — review the code logic; why was this user excluded from the share criteria?</li></ol><h3>Key Architectural Considerations</h3><p>Before wrapping up, a few cross-cutting concerns worth planning for:</p><p><strong>Large Data Volumes (LDV):</strong> Sharing recalculations are resource-intensive at scale. Use <em>Defer Sharing Calculations</em> during bulk data operations and plan realignment jobs outside peak hours.</p><p><strong>Data and Ownership Skew:</strong> Concentrated record ownership (one user or queue owning millions of records) causes severe performance degradation during sharing recalculation. Distribute ownership deliberately.</p><p><strong>Account Hierarchies:</strong> Parent-child account relationships affect implicit access in ways that can surprise architects. Model your account hierarchy with data access in mind, not just business structure.</p><h3>Wrapping Up</h3><p>Salesforce sharing architecture rewards deliberate design. The most resilient orgs share a common trait: their sharing model was planned upfront, not patched incrementally as exceptions multiplied.</p><p>Start with the most restrictive OWD that meets your requirements, build upward with roles and sharing rules, and reach for programmatic sharing only when declarative tools genuinely can’t solve the problem.</p><p>The system is powerful precisely because it’s layered — use every layer intentionally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*n2N7-9obGcYZefBqlLOv3w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec232b4c6a09" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>