<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Limit people finder results to Site Colleagues ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267970#M221100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm trying to manage the access-rights in Share and i stumbled upon a problem within the people finder. A user can search for every person within Share, be it a site colleague or not. This is a bit problematic since there may be users which shouldnt be visible to each other (e.g. competitors). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i solve this issue to limit the search results to display ONLY the people within the users Site(s)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Volker&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 14:19:09 GMT</pubDate>
    <dc:creator>volkerlux</dc:creator>
    <dc:date>2010-12-10T14:19:09Z</dc:date>
    <item>
      <title>Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267970#M221100</link>
      <description>Hello,i'm trying to manage the access-rights in Share and i stumbled upon a problem within the people finder. A user can search for every person within Share, be it a site colleague or not. This is a bit problematic since there may be users which shouldnt be visible to each other (e.g. competitors).</description>
      <pubDate>Fri, 10 Dec 2010 14:19:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267970#M221100</guid>
      <dc:creator>volkerlux</dc:creator>
      <dc:date>2010-12-10T14:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267971#M221101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The People Finder calls the repository service: /api/people?filter={filterQuery}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This service is implemented by the webscript defined in: people.get.desc.xml. So you would need to change the People Finder component client-side javascript to call a different (or overridden) webscript to perform a different search. I think you will need to implement your own repository side search that constrains the results to users within site groups that are appropriate for the current user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 11:31:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267971#M221101</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2010-12-13T11:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267972#M221102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your tip, kev. I'm thinking about another approach: Is it possible to hide the complete people search for users with a specific role, for instance "consumer"? Where/How can i handle the Accessibility of GUI elements for different User Roles?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Volker&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 09:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267972#M221102</guid>
      <dc:creator>volkerlux</dc:creator>
      <dc:date>2010-12-14T09:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267973#M221103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes this can be done quite easily. The REST API to retrieve the current user site memberships is used often in our components, for example in members-bar.get.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + encodeURIComponent(user.name));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (json.status == 200)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = eval('(' + json + ')');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The json object returned contains the site membership details for the given user in the give site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could then block out areas of the page with an appropriate #if statement in the freemarker etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 10:01:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267973#M221103</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2010-12-15T10:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267974#M221104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 16:49:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267974#M221104</guid>
      <dc:creator>volkerlux</dc:creator>
      <dc:date>2010-12-17T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Limit people finder results to Site Colleagues ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267975#M221105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the post above, but the information is a bit to limited for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I put together the REST API call and the Freemarker file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have a code example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 06:15:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/limit-people-finder-results-to-site-colleagues/m-p/267975#M221105</guid>
      <dc:creator>rhannink</dc:creator>
      <dc:date>2011-06-27T06:15:25Z</dc:date>
    </item>
  </channel>
</rss>

