1. authenticate a customer portal using SOAP login() method and LoginScopeHeader
  2. receive SessionID in LoginResult object
  3. How can I use SessionID to redirect the user's browser to the customer portal and log them in?

I've tried frontdoor.jsp, but it's not working.

Is there a better way to do this?

1 Answer 1


This discussion forum thread suggests that you can do this with


Change <instance> to the relevant instance, e.g. na1, and substitute in the relevant IDs.

  • Does this works with communities ? I can't see a clear way to get community id. I tried copying it from the Setup > Communities > All Communities and "Manage" link. My URL after SOAP API login comes out to be : cs21.salesforce.com/secur/… but this is not working out for me. +metadaddy any suggestions ? Mar 31, 2015 at 15:33
  • 1
    From Knowledge Article Number: 000193348: "Note that frontdoor.jsp login is not supported for Salesforce Communities. It has been restricted due to security risk. For seamless login from customer's website to Salesforce Communities, suggested approach is to use SAML based Single Sign-On ."
    – metadaddy
    Mar 31, 2015 at 15:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.