Ticker

6/recent/ticker-posts

Check Current User has a Custom Permission in Salesforce Using Apex

 



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');




Post a Comment

0 Comments