function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kuldeep kumar 11kuldeep kumar 11 

How to Hide an apex page for users ? I want this page to be access by particular group of users , but there are other pages in this application which should be accessible to public

NehaDabas16NehaDabas16
Hi Kuldeep,

You can achieve this by using profiles and permission sets.

For the profiles that you donot want the page to be accessible, go to the Enabled Visualforce Pages section in profiles and remove the VF page from the acessible list.
Create a permission set and give access to your page. Assign this permission set to the users you want to give access.

Please refer this section for more info : https://help.salesforce.com/articleView?id=users_profiles_visualforce_access.htm&type=5.

If this helps, please mark as resolved.

Regards,
Neha
kuldeep kumar 11kuldeep kumar 11
Hi Neha,

Thank you for checking this. I am new to this APEX Page development 
I have tried setting up the user roles and Access Level, but it didnt work. 
I tried the link above but it doesnt have the complete information.

Thanks
Kuldeep
NehaDabas16NehaDabas16
Hi Kuldeep,

Did you check profiles and permission sets? You can find these by searching in the setup search.
Please go through the documention about profiles and permission set and then make changes for the visualforce page accessibility. 
https://help.salesforce.com/articleView?id=perm_sets_overview.htm&type=5
https://help.salesforce.com/articleView?id=admin_userprofiles.htm&type=5

Also setting up user roles and access level will not affect visualforce page accessibility. It is only helpful with record visibility for subordinates.

Regards,
Neha