4

I have setup a Salesforce community and selected System Administrator to login to a community.

enter image description here

I am not able to login with any Admin user but all my community users work. When I look at the login history I see I see:

No community access

What do I need to do to enable Admin users to get community access?

  • How are admin users login in ? – Mohith Shrivastava Jun 2 '16 at 23:46
  • Through a custom visualforce page. that calls Site.login(username, password, startUrl); – Thys Michels Jun 3 '16 at 0:10
  • For employee login or admin,I don't think site.login will work .On login page usually there is a different link for employees and admin go through different route – Mohith Shrivastava Jun 3 '16 at 0:14
  • 1
    @MohithShrivastava ok what controller command do I need to use to login admins or employees? – Thys Michels Jun 3 '16 at 0:17
  • @ThysMichels did you managed to find a solution for your problem? Just have the same exact issue.. – Yonatan Goriachnick Dec 16 '19 at 19:59
2

You will need to drop a link on your Site Page which will have a label to help employees Log in via that .SFDC labels as "If you are Employee Log in here" .

The URL for this login will look like below

https://login.salesforce.com/?ec=302&startURL=/servlet/networks/session/create?site=0DME0000000fxWx&inst=E

Now if you notice the site param has an Id there attached .You will need to get your site Id from going to Sites in Set up menu and inspect element on chrome browser or other browser to get the Site Id .

You can also query for this Id .I will recommend to use labels so you can configure each time .

Also you will need to encode the StartURL parameter (URLENCODE).

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.