In Salesforce, a permission set may show "View All Records" or "Modify All Records" object permissions on a Platform Event or object, but there is no option to disable these permissions from the standard Setup user interface. This article explains how to use the Salesforce Developer Console to directly query and update the ObjectPermissions object using SOQL (Salesforce Object Query Language) to resolve this limitation.
This limitation occurs because some object permission settings on Platform Events are not editable through the standard Setup interface. The Developer Console Query Editor provides direct access to the ObjectPermissions data to make these changes.
You need two values to run the query:
Standard Objects: Refer to the Object Reference for Salesforce and Force.com documentation to find the API name. Custom Objects: Review the Naming Conventions for Custom Objects section of the Developer Documentation. Platform Events: The API name can be found on the Platform Event setup page in Setup.
There is an existing Known Issue — "Unable to assign permission set to users due to View All being enabled on Platform events" — that uses these steps as the recommended workaround.
Find the Salesforce ID for a User or profile
Remove permission set assignments with API
Some profile permissions are not accessible in API
000389259

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.