function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MiddhaMiddha 

Community User Login using Partner WSDL

Hi,

I am trying to login as a community user using Partner WSDL (Java) but with no success. Can anyone please help me understand what the endpoint should be to make this work? Here is a sample code I am trying.
ConnectorConfig config = new ConnectorConfig();
config.setUsername("user@mycommunity.com");
config.setPassword("*******");
config.setAuthEndpoint("https://testcomm-developer-edition.ap*.force.com/services/Soap/u/30.0/");
                
PartnerConnection connection = new PartnerConnection(config);  //Connector.newConnection(config);
   
//    LoginScopeHeader_element __header = new LoginScopeHeader_element();
//       __header.setOrganizationId("00D90000000ql00000");
//       __header.setPortalId("0DB90000000Gn00000");
        connection.__setLoginScopeHeader(__header);
        
System.out.println("Connection Successful = " + connection.getUserInfo());
Even adding LoginScopeHeader did'nt work.

MiddhaMiddha
This is what I found in winter 14 release note:

"• Access the SOAP or REST API through the community endpoint URL. To do so, you must have an API session. Login is not supported."

How do we get the session id via API? Does this mean we cannot login using community user credentials?