Check Current User has a Custom Permission in Salesforce Using Apex
we can use FeatureManagement.checkPermission the method, to determine which users have access to specific custom permission.
Sample Code:
1 | Boolean hasCustomPermission = FeatureManagement.checkPermission ('YOUR_CUSTOM_PERMISSION_API_NAME'); |


0 Comments