Loading

View or Update Salesforce Object Permissions via the Developer Console

Дата публикации: Jun 11, 2025
Описание

A permission set has the View All Records/Modify All Records object permission on a Platform Event or an object, but there's no option to disable it from the user interface. 

1. Go to Setup | Permission sets.
2. Select a permission set.
3. Choose Object Settings. 
4. On the target object/platform event, object permission shows View All Records or Modify All Records
5. Click the target object/platform event.
6. Click Edit. Only Read and Create permissions are available. 

Решение

1. Open the Developer Console.

Salesforce Classic:
Click Your Name | Select Developer Console.

Lightning Experience:
Click the quick access menu (Setup gear icon) | Select Developer Console.

2. Choose the Query Editor tab.
3. Input the query.

Example query:
SELECT Id, ParentId, SobjectType, PermissionsViewAllRecords, PermissionsModifyAllRecords FROM ObjectPermissions WHERE SobjectType = 'Create_Contact__e' and ParentId = '0PS2E000002Iw7a'

4. Click the Execute button. 
5. Double click on the row of the column to update. Make changes.
6. Click Save Rows button. 

NOTE:
SobjectType value refers to the API name of the target Object or Platform Event.
ParentId value refers to the target Permission Set Id. 

To get the object Id:
Standard Objects - Refer to Object Reference for Salesforce and Force.com . Select the object  to get API name.
Custom Objects - Review the section Naming Conventions for Custom Objects of the Developer Documentation.
Platform Event - Similar to custom objects, this can accessed on the Platform Event setup page.


There is an existing Known Issue, Unable to assign permission set to users due to View All being enabled on Platform events, which uses these steps as a workaround. 

Номер статьи базы знаний

000389259

 
Загрузка
Salesforce Help | Article