Discourse Salesforce integration

Summary: Enable synchronization between Discourse Users and Salesforce leads/contacts, and enable Salesforce Social Login

:link: GitHub: https://github.com/discourse/discourse-salesforce
:arrow_right: Install : Follow the plugin installation guide.


Sync between Salesforce leads/contacts & Discourse users

Screenshot 2022-02-15 at 9.19.06 PM

You can create a Salesforce lead or contact from any Discourse user using the post menu. To easily disguise those users it will display a poster icon next to the username in posts. And it will add linkbacks to these Discourse user profiles in corresponding Salesforce objects.

Screenshot 2022-02-15 at 9.15.15 PM

Screenshot 2022-02-15 at 9.15.31 PM

Also, you can filter these leads and contacts by Discourse user groups. And you can track user activities from the Salesforce chatter wall.

Screenshot 2022-02-15 at 9.19.51 PM

Sync between Salesforce cases & Discourse topics

Screenshot 2022-02-15 at 9.57.33 PM

You can create a Salesforce case for any Discourse topic from the topic admin menu. And you can view the case number and status below to the topic’s first post content. Also, you can filter these topics by tags that are configurable through site settings. And you can view topic replies from Salesforce’s case comments list.

Screenshot 2022-02-15 at 9.52.58 PM

Social Login

This plugin will also enable a Social Login with Salesforce, making it easier for your patron to sign up on Discourse.

Screenshot 2022-02-15 at 9.12.58 PM


  • Create a connected app with OAuth2 setting enabled in Salesforce admin interface. Then copy the client id and secret credentials to the Discourse site settings on the admin side.

  • Create a Private Key and Self-Signed Digital Certificate for the Salesforce connected app and update your private key content to the “salesforce rsa private key” site setting.

  • Set the username of a Salesforce admin account in the Discourse site setting “salesforce username”. It will be used to generate JIT access tokens.