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

how to restrict access to a user's profile on creating a new record on an object

How to restrict the access for a user of a xyz profile so that he can see the object and records in it and edit the records but he should not be able to create a new record.
Advices very much appreciated




Since you want to give edit access to records, so from profile you cannot restrict user from creating a new record.


However, if there is any requirement, where it is must to stop user from creating new record, you can write a trigger and it will fire on 'before insert' event and check for profile and if profile of current user is the restricted one, throw error. Since this trigger will fire on 'before insert', it will not fire on historical record and update will happen as usual on both new and older records.


Let me know if you have any specific question.


Happy to help you!


As per the question asked I would like to suggest that since the USER has certain limitations as from SYSTEM ADMIN. So make sure that you will customise the Org and give that particular user a login and password in such way that the records are not created !

Hope this works !


Hi Rozall,

                   If you want the user xyz profile see the record and edit the record and not create the new have to follow below steps.
                   goto user xyz profile edit that profile 
                   goto custom object permissions and uncheck the create check box on particular custom object
User-added image

Hope this works.

Is it help for you mark it as a solution