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 custom object permissions to read.

 

Thank you.

 

Regards,
Prakki

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu
you can't change the object permissions using apex....

All Answers

kiranmutturukiranmutturu
you can't change the object permissions using apex....
This was selected as the best answer
PrakkiPrakki
Hi Kiran,

Thx for the answer,

How about with trigger ?? can we change object permissions, field level permissions with triggers..??
kiranmutturukiranmutturu
apex in the sense it includes classes as well as triggers...
PrakkiPrakki
Hi Kiran,

Thx for the clarification.

Regards,
Prakki