When notes and attachments are migrated to Lightning Experience in Salesforce using the Notes and Attachments migration tool, the ContentDocumentLink ShareType is set to "V" (Viewer) by default. This prevents users who have access to a related record (such as an Account or Contact) from editing the associated ContentNote, even when they should have edit permissions based on the related record.
This article explains how to use Data Loader to bulk-update the ShareType of ContentDocumentLink records so that users can edit ContentNotes based on their record-level access.
See Also:
* Change File Access in Salesforce Classic
* Migrate notes and attachments to Lightning
Why ShareType Matters
The ShareType field on ContentDocumentLink controls what a user can do with a shared file:
* V (Viewer): The user can view the file but cannot edit it, regardless of their permissions on the related record.
* I (Inferred): The user's permission is determined by their access level on the related record. If they can edit the record, they can edit the file.
To allow users to edit ContentNotes, the ShareType must be updated from V to I.
Steps to Mass Update ShareType via Data Loader
Step 1: Export ContentDocumentLink records using Data Loader.
In Data Loader, export records from the ContentDocumentLink object. Apply a filter using the LINKEDENTITYID field (the related record ID, such as an Account ID) or the ContentDocumentID field to scope your export to the relevant records. Include the Id and ShareType fields in your export. For example, filter on a specific Account ID to export all content links for that account.
Step 2: Modify the exported CSV file.
Open the exported CSV file. Locate the ShareType column. Change the value from "V" to "I" for all rows you want to update.
Step 3: Update ContentDocumentLink records using Data Loader.
In Data Loader, use the Update operation on the ContentDocumentLink object. Map the Id and ShareType fields from your modified CSV. Proceed with the update.
Step 4: Verify the update.
After the update completes, verify that the affected users can now edit the ContentNote records via the related record.
000380894

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.