Friday, 6 March 2020

Enable SSO between 2 salesforce communities

Hello Everyone ,
I hope you all have read my recent post. Recently I have implemented SSO between 2 salesforce communities. Let’s start how I did this using salesforce’s out of the box functionality.

Use Case: one organisation was using the salesforce and salesforce community(let's name it cloudkicks) , later they acquired another organisation another company and that company was also using the salesforce and salesforce community(name it iCourier).  Now the stakeholder of the parent organisation wanted that users of their community can login directly in the acquired company’s community portal.

So in this case cloudkicks will act as Identity provider (Source organisation) and iCourier will act as service provider (Target community where we want to login).

Following steps we need to take :
1.     Enable Identity provider in source org.
2.     Enable Single Sign on in the target org.
3.     Create a connected app in the source org.

Let’s see them step by step how that will be working.
1.     Enable Identity provider in source org:
a.     If identity provider is not already enabled in org then first enable it.
Once we click on the enable identity provider button we will be asked to select a certificate, you can select existing one or also can create new.
b.     Download metadata and certificate: Once we have enabled identity provider in our source org we need to download metadata file, which will be used for enabling single sign on in the target org.

2.     Enable Single Sign on in the target org
a.     SAML Enabled:
b.     Create SAML Sign-On Settings: We can click on a new button and fill all the details manually,or we can use metadata file by clicking on the ‘New from Metadata file’  button. We will use a metadata file which we used from step 1.

All details will be filled automatically. We would need to make the following changes for red highlighted fields.

Request Signature Method: RSA-SHA1
Service Provider Initiated Request Binding: HTTP POST
Identity Provider Login URL: Keep it blank for now , we will come back to it later.

3.     Create connected app in the source org: We will create a connected app in the source org (cloud kicks) .
In the connected app , enable SAML, we need some information here that will be provided by target org when they enable single sign on setting.
Lets see where we can get entity url and ACS URL from the target org.Both details are available on the detail page of single sign on setting which we created in step 2.

Entity Id :

ASC URL: Is the endpoint of login url where we need to provide login access.

Once we save connected app , click on manage button and assign profiles who will be using this connected app (cloudkicks community user profile)

Now we need to copy ‘IdP-Initiated Login URL’ and put it on the single sign on settings, remember we put 1 blank value there.
Copy from the connected app

Paste on the single sign on setting page in target org.

Now we are done with the setup. We can call this url on any button click from target community (Cloudkicks) and it will allow us to login into source org community (iCourier).

Note: We can set federation Id on user detail page, make sure federation id should be same in both orgs for a user, this will be used to authenticate the user.


  1. We provides Latest electronics news, Technology News, Get connected to global community of tech news, Electronics Projects, Electronics Circuit here at, For any query call now:- 91-122-3550122

  2. Hey Nice Blog!!! Thank you for sharing the information. Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!!!

    Best SEO Services Companies in Noida
    Best seo company in delhi
    Top seo company in noida

  3. Learn amazon web server in the cognex institute to get high quality education. Cognex is the best AWS Training in Chennai. Cognex Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Chennai.

  4. Cloud-based networking, is when some of an organization’s networking resources are hosted in the cloud. This may refer to either a public or private cloud. My cousin get cloud solutions from Setton Consulting for her local business development. Their services are so satisfied.
    best cloud storage solutions in USA

  5. This comment has been removed by the author.

  6. This comment has been removed by the author.

  7. Awesome post sir,
    really appreciate for your writing. This blog is very much useful...

    Looking for the best PPC course in Bangalore India? Learn PPC from Ranjan Jena, 10+ Years Expert Google Ads Trainer. 1000+ Students Trained @ eMarket Education, Koramangala, Bangalore.

    Best Online Digital Marketing Courses in Bangalore, India
    Best Digital Marketing Institute in Bangalore

  8. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man, Keep it cloud server solutions in USA

  9. Fascinating post. I have been pondering about this issue, quite cool post. It’s actually great post. Thanksbest cloud server solutions in USA

  10. You have shared a nice article here about this topic. Your article is very informative and nicely describes about heaters. Thanks for sharing this article here.It Support Service Singapore

  11. Thank you so much for sharing this worth able content with us. The concept taken here will be useful for my future programs and i will surely implement them in my study. Keep blogging article like this.

    Best Project Management Software

  12. Thanks for sharing the valuable information here. Keep sharing more informative articles.
    Business Process Outsourcing Services
    Mobile application development company

  13. Thank you so much for sharing this blog with us. It provides a collection of useful information. You obviously put a lot of effort into it! best jacksonville it services service provider.

  14. Thank you for sharing this extremely useful information. You made some well-considered points.
    This essay has a lot of information that I would never have considered on my own.

    digital marketing training in hyderabad