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
Shifs SalheenShifs Salheen 

Prevent Delete of Objects

Hi,
I don't want some of my users to give the right for deleting/ editing or creating new  custom objects.Can anyone tell me how to achieve this
Ajay mishraAjay mishra
Hi Shifs,

Create a custom profile and assign to those user whom you dont want to give access.
And in Profile remove the object access.

Thanks,
Ajay Mishra
Email: mishraajay.m1@gmail.com
Shifs SalheenShifs Salheen
Hi Ajay,
Actually I am concerned about Objects and not records.So is it possible that I give permission to create VF pages but not creation of new custom Objects?
Ajay mishraAjay mishra
Hi Shifs,

There is no way to remove the rights of create object and keep of VF Pages.

But you can archive using below approach:
 
1. Uncheck View Setup and Configuration from profile, So those user would not be able to see the setup.

2. Create a VF Page which will have button New and it will override the functionality of Standard New VF Page button.


Thanks,
Ajay Mishra
Email: mishraajay.m1@gmail.com