You need to sign in to do that
Don't have an account?
SFDC8899
How to deactivate or activate portal users pragmatically
HI,
I need to do activate or deactivate portal community users based on contact record checkbox field.
if the check is ture then that contact can be have access on portal community or else can't become a portal user
kindly share your thoughts nd way of approch
thanks
I need to do activate or deactivate portal community users based on contact record checkbox field.
if the check is ture then that contact can be have access on portal community or else can't become a portal user
kindly share your thoughts nd way of approch
thanks
try this code
Reference:
https://salesforce.stackexchange.com/questions/17389/how-do-i-deactivate-a-portal-user-in-apex-code
Let us know if it works.
Mark it as best answer if it works.
Thanks.
All Answers
try this code
Reference:
https://salesforce.stackexchange.com/questions/17389/how-do-i-deactivate-a-portal-user-in-apex-code
Let us know if it works.
Mark it as best answer if it works.
Thanks.
1) https://salesforce.stackexchange.com/questions/17389/how-do-i-deactivate-a-portal-user-in-apex-code
2) https://salesforce.stackexchange.com/questions/98818/is-it-possible-to-reactivate-a-deactivated-user-through-apex
3) https://salesforce.stackexchange.com/questions/260/re-set-user-isportalenabled-field
Let us know if this will help you
Here is the console output of my test class: