we can use FeatureManagement.checkPermission
method, to determine which users have access to a specific custom permission.
Sample Code:
Boolean hasCustomPermission = FeatureManagement.checkPermission('YOUR_CUSTOM_PERMISSION_API_NAME');
we can use FeatureManagement.checkPermission
method, to determine which users have access to a specific custom permission.
Sample Code:
Boolean hasCustomPermission = FeatureManagement.checkPermission('YOUR_CUSTOM_PERMISSION_API_NAME');