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
PrakkiPrakki 

Can we change current profile permissions with triggers.

Dear All,

 

Can we change current profile permissions with triggers.

 

I mean a user Prakki is assaigned by a profile xxx which consists of custom object permisions Read,create,edit,delete.

 

Now with the help of trigger can i change this custom object permissions to read.

 

Thank you.

 

Regards,
Prakki

gautam_singhgautam_singh

Hi,

You can access Profile and CRUD Permissions through API or triggers by querying on the Profile Object Permission Object . Check this link for more details.

Also , You can check this Salesforce Blog for more details .



Important :

Hit Kudos [Star Aside this Post] if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You .