0

Can I access Apex Rest API from an external system using customer community user credentials?

2

Hope this below link helps in your scenario.

The great Pat Patterson has a blog post about this on the developer relations blog (https://developer.salesforce.com/blogs/developer-relations/2013/02/oauth-for-portal-users.html) which gives some details about setting this up.

Check this as well.

(https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_username_password_flow.htm&language=en_US))

| improve this answer | |
  • @metadaddy, aka the great Pat Patterson! (I found that answer to be a great help as well!!) – John Thompson Sep 23 '17 at 15:01
  • @Samuel Robert, Am getting unsupported_granttype error. – Lightning Boy Sep 25 '17 at 13:26
  • I tried username - password flow using Admin credentials and it worked fine. When I changed the endpoint with community url and used credentials of an active community user, got this error : { "error": "unsupported_grant_type", "error_description": "grant type not supported" } – Lightning Boy Sep 25 '17 at 13:34
  • It worked. Thank you Samuel for this infomation. Web Server Auth Flow is working perfect with communities. But Username-Password flow will not work in this case. – Lightning Boy Sep 26 '17 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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