New answers tagged

1

It is driven from the FLS of the User on the object changing. See Change Data Capture Developer Guide - Field-Level Security. Change Data Capture respects your org’s field-level security settings. Delivered events contain only the fields that a subscribed user is allowed to view. Before delivering a change event for an object, the subscribed user’s field ...


0

In Salesforce Classic, users who don’t have Read access or the View All Lookup Record Names permission see an underscore in system user lookup fields. They also see the record ID in custom user lookup and non-user lookup fields. After the Require permission to view record names in lookup fields setting is enabled, in Lightning Experience, users who don’t ...


2

I believe you are actually asking "how do I find all the objects for which the Permission Set doesn't have access?" As you pointed out, ObjectPermissions won't return objects on which the Permission Set has absolutely nothing enabled. Consequently, in Apex, you will need to collect all objects by using Schema.getGlobalDescribe(), query and loop ...


2

The answer is yes, Salesforce doesn't perform object-level permission or field level permission checks in Apex. In order to do that you need to do something like: if (Schema.sObjectType.Account.isDeletable()) { System.assertEquals(true, Database.delete(testAccountList[0], false).isSuccess()); } See the documentation about Enforcing Object and Field ...


2

Based on this: taken from the Profile and Permission Objects documentation and noticing that a PermissionSet can optionally be tied directly to a profile - presumably the permissions are defined for a profile via a hidden PermissionSet - I would guess that "yes" you can query the complete access permissions. PS On the subject of what is the most a ...


0

OR( AND( ISPICKVAL(Status__c , "Incubator"), ISBLANK(Field01__c) ), AND( !$Setup.Bypass__c.ValidationRule__c, !$Permission.IntegrationPermissions, $User.Username != $Label.PERMISSION_USER ) )


Top 50 recent answers are included