Answers.Body: <p>It is not possible to expose contacts to anonymous users. </p>
  
  <p>The only place where this is possible is with registered participants for an event because you could create a public participant listing. </p>
  
  <p>The other way to expose data to anonymous users to use a module from your CMS. In Drupal you could use the views module, and in Wordpress you can show a profile list on a wordpress page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-02T12:22:54.663Z
Answers.Text: You are right but toth are using functionality from their cms, which is the Drupal Views module, or profile listing on a word press page.
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T16:49:16.133Z
Answers.Text: Not necessarily true...Example: https://civicrm.stackexchange.com/questions/7577/front-end-profile-view-issues  and even the worst example if you don't want it to happen: https://civicrm.stackexchange.com/questions/20543/contact-names-showing-up-on-google-search-even-when-they-are-not-public
Answers.UserDisplayName: ChaosBuster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-01T09:40:58.967Z
Answers.LastActivityDate: 2018-06-02T12:24:14.533Z
Answers.LastEditDate: 2018-06-02T12:24:14.533Z
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Body: <p>Currently on CiviCRM 5.1.2 / WordPress 4.9.6 in my dev site and on my Live site on CiviCRM 5.0.2 / WordPress 4.9.6.  The reason for the CiviCRM difference was it was my last attempt to see the cause of a behavior I'm seeing:</p>
  
  <p><strong>Problem:</strong>  <em>Anonymous users are not able to View the details of a contact that is in our public directory listing.</em><br>
  <strong>Scenarios:</strong> </p>
  
  <ul>
  <li><em>When an anonymous user clicks 'View' they are redirected to the home page.</em></li>
  <li><em>For ANY logged in user it will show the details of the contact selected.</em></li>
  </ul>
  
  <p><strong>Expectation:</strong>  We are wanting even anonymous users to be able to see the details of the directory.</p>
  
  <hr>
  
  <p><strong>Things that have been checked:</strong></p>
  
  <ol>
  <li>I have looked for any errors during the timeframe in the Log files located in:    </li>
  </ol>
  
  <blockquote>
    <p>wp-content/uploads/civicrm/ConfigAndLog</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>../wp-content/error.log</p>
  </blockquote>
  
  <ol start="2">
  <li><p>Checked the permission of the Profile that is being used for the directory Listing and detail View.</p>
  
  <ul>
  <li><p><strong><em>Used For</em></strong> option has    <strong><em>Standalone Form or Directory</em></strong>  and <strong><em>Search Views</em></strong> checked</p></li>
  <li><p>The group, <strong><em>Hub Directory of Organizations</em></strong>, is selected as the Limit listing group.</p></li>
  <li><p><strong><em>No account creation option</em></strong>,  <strong><em>Issue warning and do not save selected</em></strong>, <strong><em>No Proximity</em></strong> search and <strong><em>Enable mapping for
  this profile</em></strong> is selected</p></li>
  <li><p>All fields are set to either <strong><em>Expose Publicly</em></strong> or <strong><em>Expose Publicly and for Listings</em></strong></p></li>
  <li><p>As one test I had all fields set to <strong><em>View Only</em></strong> to no avail</p></li>
  </ul></li>
  <li><p>Changed the permission on the limit listing group, <strong><em>Hub Directory of Organizations</em></strong>, and its parent group from <strong><em>User and User Admin Only</em></strong> to <strong><em>Expose Publicly</em></strong> to see if it made a difference.  No avail.</p></li>
  <li><p>Checked WordPress / CiviCRM permission access to make sure the following were checked:  <strong><em>Access_all_custom_data</em></strong>, <strong><em>access_contact_reference_fields</em></strong>, <strong><em>access_uploaded_files</em></strong>, <strong><em>profile_listings</em></strong>, <strong><em>profile_listings_and_forms</em></strong> and <strong><em>profile_view</em></strong>.  At one point I tried <strong><em>view_all_contacts</em></strong>, but to no avail.</p></li>
  <li><p>Disabled any new extensions and the one that wrote for special formatting of my directory to see if it was affecting the permissions or access.  Did not fix.</p></li>
  </ol>
  
  <p>What else should I check for?  A combination of things to be checked together?</p>
  
Tags: <wordpress><profile><permissions><directory>
Title: Anonymous users can't View details of a Contact in a public directory Listing
ThreadText: # Anonymous users can't View details of a Contact in a public directory Listing
  
  (Asked by: username_0 on 2018-06-01)
  
  Currently on CiviCRM 5.1.2 / WordPress 4.9.6 in my dev site and on my Live site on CiviCRM 5.0.2 / WordPress 4.9.6. The reason for the CiviCRM difference was it was my last attempt to see the cause of a behavior I'm seeing:
  
  **Problem:** *Anonymous users are not able to View the details of a contact that is in our public directory listing.*  
  **Scenarios:**
  
  * *When an anonymous user clicks 'View' they are redirected to the home page.*
  * *For ANY logged in user it will show the details of the contact selected.*
  
  **Expectation:** We are wanting even anonymous users to be able to see the details of the directory.
  
  ---
  
  **Things that have been checked:**
  
  1. I have looked for any errors during the timeframe in the Log files located in:
  
  > wp-content/uploads/civicrm/ConfigAndLog
  
  and
  
  > ../wp-content/error.log
  
  2. Checked the permission of the Profile that is being used for the directory Listing and detail View.
  
     * ***Used For*** option has ***Standalone Form or Directory*** and ***Search Views*** checked
     * The group, ***Hub Directory of Organizations***, is selected as the Limit listing group.
     * ***No account creation option***, ***Issue warning and do not save selected***, ***No Proximity*** search and ***Enable mapping for
       this profile*** is selected
     * All fields are set to either ***Expose Publicly*** or ***Expose Publicly and for Listings***
     * As one test I had all fields set to ***View Only*** to no avail
  3. Changed the permission on the limit listing group, ***Hub Directory of Organizations***, and its parent group from ***User and User Admin Only*** to ***Expose Publicly*** to see if it made a difference. No avail.
  4. Checked WordPress / CiviCRM permission access to make sure the following were checked: ***Access\_all\_custom\_data***, ***access\_contact\_reference\_fields***, ***access\_uploaded\_files***, ***profile\_listings***, ***profile\_listings\_and\_forms*** and ***profile\_view***. At one point I tried ***view\_all\_contacts***, but to no avail.
  5. Disabled any new extensions and the one that wrote for special formatting of my directory to see if it was affecting the permissions or access. Did not fix.
  
  What else should I check for? A combination of things to be checked together?
  
  **Tags:** wordpress, profile, permissions, directory
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-01. Score: 3
  
  It is not possible to expose contacts to anonymous users.
  
  The only place where this is possible is with registered participants for an event because you could create a public participant listing.
  
  The other way to expose data to anonymous users to use a module from your CMS. In Drupal you could use the views module, and in Wordpress you can show a profile list on a wordpress page.
  
  > **Comments:**
  > **username_0**: Not necessarily true...Example: https://civicrm.stackexchange.com/questions/7577/front-end-profile-view-issues  and even the worst example if you don't want it to happen: https://civicrm.stackexchange.com/questions/20543/contact-names-showing-up-on-google-search-even-when-they-are-not-public  
  > **username_1**: You are right but toth are using functionality from their cms, which is the Drupal Views module, or profile listing on a word press page.  
  
  ---
  
  