This article explains how to use Data Loader to perform a bulk update of object-level permissions for custom Profiles and Permission Sets in Salesforce.
The process involves three steps:
Note: Standard profiles cannot be updated using this method. Attempting to update a standard profile results in the following error: INVALID_CROSS_REFERENCE_KEY - You Can't Create, Edit, Or Delete Records For This Permission Set Parent Because It's Associated With A Standard Profile.
Refer to the User, Sharing, and Permission Objects Data Model for an overview of how ObjectPermissions, PermissionSet, and Profile objects relate to one another.
SELECT Id, Parent.Profile.Name, Parent.ProfileId, Parent.Name, SobjectType, PermissionsCreate, PermissionsRead, PermissionsEdit, PermissionsDelete, PermissionsViewAllRecords, PermissionsModifyAllRecords, ParentId, Parent.IsCustom, Parent.IsOwnedByProfile FROM ObjectPermissions WHERE Parent.NamespacePrefix = ''
SELECT Id, Parent.Profile.Name, SobjectType, PermissionsCreate, PermissionsDelete, PermissionsEdit, PermissionsModifyAllRecords, PermissionsRead, PermissionsViewAllRecords FROM ObjectPermissions WHERE Parent.ProfileId = '<ProfileIdHere>'Id, PermissionsCreate, PermissionsRead, PermissionsEdit, PermissionsDelete, PermissionsViewAllRecords, PermissionsModifyAllRecords.000381102

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.