+ Start a Discussion
tarun.khandelwal1.3965028573349685E12tarun.khandelwal1.3965028573349685E12 

How can i reset Password for a User when logged in as "Customer Community" license

Hi All,

I am trying to reset password for a User From Community using "Customer Community" license. But doing so gives me error "UNKNOWN_EXCEPTION, common.apex.runtime.impl.ExecutionException: INVALID_SESSION_ID: This session is not valid for use with the API: []: "
Can anyone please tell me what's the issue for that and how can i resolve it?
NehalNehal (Salesforce Developers) 
Hi,

Please refer to below link: https://help.salesforce.com/apex/HTViewSolution?urlname=Why-is-my-client-application-getting-an-INVALID-SESSION-ID-error-1327109389075&language=en_US

I hope this helps.
tarun.khandelwal1.3965028573349685E12tarun.khandelwal1.3965028573349685E12

Thanks for the reply,

But i am not calling the resetPassword from client app through SOAP.
It's from a Apex Class which is being called from Community Login. 

And that is happening for system.resetPassword().

Vinit_KumarVinit_Kumar
Are you using this user at multiple places..I mean is there any other application using the same user's credentials thorugh which u are resetting the password ??
tarun.khandelwal1.3965028573349685E12tarun.khandelwal1.3965028573349685E12
No. This is the only place where i am calling reset password.
Is it something related to clickjacking protection enabled on Session Settings??