+ Start a Discussion
VinceCVinceC 

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://developer4-testcompany.cs18.force.com/services/Soap/c/35.0/0DF110000008OOO");
//          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
http://salesforce.stackexchange.com/questions/71020/how-to-check-community-user-credentials-via-api
But could not find it for the customer community 
 
VinceCVinceC
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, 
http://salesforce.stackexchange.com/questions/16316/using-salesforce-partner-api-from-community-portal
Abhishek Sharma 277Abhishek Sharma 277
@VinceC which of the above endpoints worked for you ?