Sign up ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
  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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer
metadaddy FTW! Thanks! – aaronbauman Apr 25 '14 at 13:50
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 :… but this is not working out for me. +metadaddy any suggestions ? – Abhinav Gupta Mar 31 at 15:33
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 at 15:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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