Hi, Unfortunately, you can't do that in standard page layouts. What you can do is create another page layout, and remove that custom button from that page layout and then assign that page layout to the profile of that particular user from which you want to hide that button.
Unfortunately, you can't do that in standard page layouts.
What you can do is create another page layout, and remove that custom button from that page layout and then assign that page layout to the profile of that particular user from which you want to hide that button.
Thanks
You can follow below steps to achieve it:
1. Create two pagelayout, one withoiut the button and another with the button which will invoke the VF page.
2. Create two recordtype each one respectively for the above pagelayout.
3. Create a workflow and based on criteria trigger the workflow which have a Field Update action to update the recordtype.
4. set RecordType accordingly to get the right pagelayout, and then invoke the VF page from button.