<?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 Re: webscript that takes a noderef and a user, should grant read permission to the user on the file. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-that-takes-a-noderef-and-a-user-should-grant-read/m-p/37247#M15678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;B&gt;Vin P&lt;/B&gt;‌&lt;BR /&gt;You can pass parameters to&amp;nbsp;data webscripts refer this document to create webscript and fetch parameters&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-5166"&gt;Web Scripts&lt;/A&gt;&amp;nbsp;and after getting your noderef and username check whether it is exists or not and set permission.&lt;BR /&gt;To set permission refer&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/4.1/references/API-JS-setPermission.html" title="http://docs.alfresco.com/4.1/references/API-JS-setPermission.html" rel="nofollow noopener noreferrer"&gt;setPermission | Alfresco Documentation&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kalpesh&amp;nbsp;&lt;BR /&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 14:46:34 GMT</pubDate>
    <dc:creator>kalpesh_c2</dc:creator>
    <dc:date>2017-10-25T14:46:34Z</dc:date>
    <item>
      <title>webscript that takes a noderef and a user, should grant read permission to the user on the file.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-that-takes-a-noderef-and-a-user-should-grant-read/m-p/37246#M15677</link>
      <description>Hi,Could you help me with below webscript or provide any sample code if you have it. i'm just getting started with alfresco.Thanks,Vin</description>
      <pubDate>Tue, 24 Oct 2017 15:26:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-that-takes-a-noderef-and-a-user-should-grant-read/m-p/37246#M15677</guid>
      <dc:creator>polojuvinod</dc:creator>
      <dc:date>2017-10-24T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: webscript that takes a noderef and a user, should grant read permission to the user on the file.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-that-takes-a-noderef-and-a-user-should-grant-read/m-p/37247#M15678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;B&gt;Vin P&lt;/B&gt;‌&lt;BR /&gt;You can pass parameters to&amp;nbsp;data webscripts refer this document to create webscript and fetch parameters&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-5166"&gt;Web Scripts&lt;/A&gt;&amp;nbsp;and after getting your noderef and username check whether it is exists or not and set permission.&lt;BR /&gt;To set permission refer&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/4.1/references/API-JS-setPermission.html" title="http://docs.alfresco.com/4.1/references/API-JS-setPermission.html" rel="nofollow noopener noreferrer"&gt;setPermission | Alfresco Documentation&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kalpesh&amp;nbsp;&lt;BR /&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 14:46:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-that-takes-a-noderef-and-a-user-should-grant-read/m-p/37247#M15678</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2017-10-25T14:46:34Z</dc:date>
    </item>
  </channel>
</rss>

