Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Manage Users and Data Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Remove Records Shared Manually or via Apex Managed Sharing

          Remove Records Shared Manually or via Apex Managed Sharing

          With the Guest User Access Report, you can find records that were shared with guest users manually or via Apex sharing before the Winter ’21 enforcement of the guest user security policy. You can then delete the records manually or by using DataLoader.

          Any record shared with guest users manually or via Apex sharing is potentially accessible to any user accessing the site from the internet. There is a risk of data being inadvertently shared.

          This query returns any records shared with the guest user manually or via Apex sharing.

          SELECT Id,[ParentId],RowCause,UserOrGroupId FROM [shareObject] WHERE UserOrGroupId IN [userOrGroupIdList] AND RowCause != 'Owner' AND RowCause != 'Rule' AND RowCause != 'GuestRule'
          • Substitute [parentId] with the correct field for standard object shares. For custom objects, it’s [parentId].
          • Substitute the [shareObject] with the value of the API name of the share object. For example, for the Account object, the share object is called AccountShare. For a custom object called Custom_Object_1__c, the share object is called Custom_Object_1__Share.
          • Substitute the UserOrGroupIdList with a list of IDs for any Public Groups that the guest user is a part of, in addition to the record ID of the guest user record. Also, removing the guest user from any public groups is recommended, in which case this value can be the guest user record ID.

          Delete these records manually or by using DataLoader.

           
          Loading
          Salesforce Help | Article