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
Prasad RuwanpathiranaPrasad Ruwanpathirana 

Username-Password OAuth Authentication is working with the community users?

I need to configure Username-Password OAuth Authentication to get salesforce data with the REST API through a community users. Is is possible to do that?
Best Answer chosen by Prasad Ruwanpathirana
Prasad RuwanpathiranaPrasad Ruwanpathirana
Thanks Carlo ,Yes we  can authanticating using the SOAP api and then can get the session token. Then using the session token in the header of the REST request can authanticate using the REST api.

All Answers

Carlo FrettiCarlo Fretti
I have just found this using the search.  

I have not managed to get this working.

A Customer Community User does not have an access token.  You need an access token for authentication.

We have Customer Community users accessing our org via SOAP api.  With SOAP api you need to send an extra param in the authenticate for Organisation ID.  I can not figure out how to do this via REST api.
Prasad RuwanpathiranaPrasad Ruwanpathirana
Thanks Carlo ,Yes we  can authanticating using the SOAP api and then can get the session token. Then using the session token in the header of the REST request can authanticate using the REST api.
This was selected as the best answer