+ Start a Discussion

Using SOAP API Login() with Community Users with Customer/Partner Licence Types

Using the SOAP API Login() and Enterprise WSDL, I can login to our org with standard user types but can not login using a community users. Which AuthEndpoint should be set for community users?

// which authEndpoint should be used? None of the endpoints listed below will work for customer/parter users
//          config.setAuthEndpoint("https://testcompany--testcompany.cs18.my.salesforce.com/services/Soap/c/35.0/0DF110000008OOO");
//          config.setAuthEndpoint("https://test.salesforce.com/services/Soap/c/35.0/0DF110000008OOO");
          connection = new EnterpriseConnection(config);
saurabh patilsaurabh patil
Hey any luck with it? Me too trying to do this.For partner user got this
But could not find it for the customer community 
Yes, need to set the orgId in the session scope header and it works for regular users and community users, see this post as well, 
Abhishek Sharma 277Abhishek Sharma 277
@VinceC which of the above endpoints worked for you ?