<?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 Search API and permissions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100753#M29042</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have problem with search API. When i as regular user call this query&lt;/P&gt;&lt;PRE&gt;{
    "include":["properties"],
    "paging":{
        "maxItems":10,
        "skipCount":0
    },
    "query":{
        "language":"afts",
        "query": "PATH:'/app:company_home/st:sites/cm:Test/cm:documentLibrary//*'"&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;It returns 5 files, which i can see, i have permission on them, but problem is, when someone remove permission from one file, then within next call i will get 403 response. Until SOLR is no't reindexed. This is from my point of view unexpected behaviour. Can i exclude files, which i can't see from results? I know why this is happening, because of SOLR reindex process, which is, he still see 5 files, but when he is trying to return files properties will fail, beacause i don't have permission anymore. My question is, how can i solve this problem?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 13:16:21 GMT</pubDate>
    <dc:creator>MartinTichovsky</dc:creator>
    <dc:date>2020-04-30T13:16:21Z</dc:date>
    <item>
      <title>Search API and permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100753#M29042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have problem with search API. When i as regular user call this query&lt;/P&gt;&lt;PRE&gt;{
    "include":["properties"],
    "paging":{
        "maxItems":10,
        "skipCount":0
    },
    "query":{
        "language":"afts",
        "query": "PATH:'/app:company_home/st:sites/cm:Test/cm:documentLibrary//*'"&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;It returns 5 files, which i can see, i have permission on them, but problem is, when someone remove permission from one file, then within next call i will get 403 response. Until SOLR is no't reindexed. This is from my point of view unexpected behaviour. Can i exclude files, which i can't see from results? I know why this is happening, because of SOLR reindex process, which is, he still see 5 files, but when he is trying to return files properties will fail, beacause i don't have permission anymore. My question is, how can i solve this problem?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:16:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100753#M29042</guid>
      <dc:creator>MartinTichovsky</dc:creator>
      <dc:date>2020-04-30T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100754#M29043</link>
      <description>&lt;P&gt;Can you check your Alfresco alfresco-global.properties for any value set for the security.anyDenyDenies? This value should be set to true (default value if not set in your alfresco-global.properties) and should apply cause post-filtering to be applied to any results from SOLR, so these nodes that you can't access because of changed and as-of-yet unindexed ACLs should be filtered out before any attempt to write their metadata is made. They would have had to consciously / deliberately work around this to mess it up in the v1 ReST API.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:00:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100754#M29043</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-04-30T18:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100755#M29044</link>
      <description>&lt;P&gt;Unfortunately it not works, i tryed set the&amp;nbsp;&lt;SPAN&gt;security.anyDenyDenies to false or true, i tryed both, and still getting response&amp;nbsp;"framework.exception.PermissionDenied".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 07:02:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-permissions/m-p/100755#M29044</guid>
      <dc:creator>MartinTichovsky</dc:creator>
      <dc:date>2020-05-01T07:02:24Z</dc:date>
    </item>
  </channel>
</rss>

