You need to sign in to do that
Don't have an account?
Rotnes
Cannot change profile for current user.
I am looking for a way to let a customer portal user trigger a action which assign him to a different profile.
I have tried with, triggers, @future method, time based workflow but these approaches all leads to the
FIELD_INTEGRITY_EXCEPTION, Cannot change profile for current user.
Is it at all possible that a customer portal user activate a profile change for himself?
Found a nice video on youtube which demonstrate a workaround for the problem.
http://www.youtube.com/watch?v=a2fJWeJscps
All Answers
This is intentional, users should not be able to change their own profile.
What's your use case for changing the profile of a portal user?
I would like the portal user to be able to change profile by
accepting different terms og agreement.
My goal is to remove the manual step for internal users in this proccess.
Found a nice video on youtube which demonstrate a workaround for the problem.
http://www.youtube.com/watch?v=a2fJWeJscps
http://salesforce-tweaks.blogspot.in/2016/02/how-to-changeupdate-profile-of-user-in.html