You need to sign in to do that
Don't have an account?

Override New button with VF page that only some users have security privileges to access
Our Contact object New button is overridden to display a custom VF page with added functionality. However, some profiles do not have access to this functionality and should see the standard page. The VF page has functionality on it that we have to pay to use, so we do not want all users having access.
Can someone please advise if I can remove access to the override classes/VF pages for all users and then assigned to specific users via a Permission Set? If not, what would be the best way to accomplish what we are trying to do? Thanks!
Can someone please advise if I can remove access to the override classes/VF pages for all users and then assigned to specific users via a Permission Set? If not, what would be the best way to accomplish what we are trying to do? Thanks!
Only way to overcome this issue is to have an other visualforce page which is accessible by all profiles, which has logic to redirect to the standard contact creation page or the custom page of yours based on custom logic. You can use custom settings to dynamically decide which profile to land on which page. (similar to whitelisitng, if the list contains the current users profile redirect him to another vf page else navigate him to the standard contact creation page)
If there is only one page, then the users who doesnt have rights to the vf page will see a Insufficient Priviliges error from salesforce and will be stuck there.
Hope it helps.,
Thanks,
Balaji