You need to sign in to do that
Don't have an account?

How can i write a trigger to assign permission set when a new user is inserted with particular role ?
Hi all,
i have one requirement i need to assign a permission set when a new user is insrted with a particular role in system how can i do this by using a trigger ?
Thanks
It would be a easy way to assign a permission set through a flow than with trigger. Any reason you need specifically a trigger?
Thanks,
The trigger can be as below. You can replace that permission set id with the custom label or even quering with name.
If this solution helps, Please mark it as best answer.
Thanks,