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
Supriyo Ghosh 5Supriyo Ghosh 5 

Restrict Recordtype for a user

Hi,

I am having three record type in opportunity like a,b,c.I want to restrict a user e.g Ram Sharma should not create any opportunity with record type b.
Please suggest me how to do that.I cannot change his profile.
Best Answer chosen by Supriyo Ghosh 5
DevADSDevADS
Hi Supriyo,

I see two solutions for this requirement -
1. You can use permission set to extend the record type permission to other users, Like in your case restrict the record types at profile level & extend it using permission set.
2. Create a custom checkbox field on User object.For the users you don't want access to, mark it true . Implement a valiation rule where you will check the checkbox is TRUE & the record type name is the restricting one.
Ex. $User.<CustomFieldApi> && RecordType.DeveloperName = '<recordtypename>'

Happy Coding!

Regards,
Amit Shingavi