[SalesForce] ‘INSUFFICIENT_ACCESS: portal user email settings are not available’ error on System.setPassword

As stated in the title, I get this error when the System.setPassword method is called, but only in our production environment (while deploying, since it's called from test code too). So this leads me to believe there's an issue with our portal settings on this environment, but I have no clue where to look. Nothing I can find seems related to email settings not being available.

Best Answer

The issue I ran into was that even though I had the right profiles assigned to the community, I had not yet published the community.

Related Topic