<?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 Getting all permissions from a starting node in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122890#M33654</link>
    <description>&lt;P&gt;EN : Hello ! I would like to output a list (.json) with the permissions (inherited or added on the node) of each node, from a starting node. Thank you in advance !&lt;/P&gt;&lt;P&gt;FR : Bonjour !&amp;nbsp; J'aimerais pouvoir sortir une liste sous forme de .json avec les permissions (héritées ou ajoutées sur le noeud) de chaque noeud, depuis un noeud de base. Merci d'avance !&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 14:59:56 GMT</pubDate>
    <dc:creator>LoicNicolet</dc:creator>
    <dc:date>2021-02-22T14:59:56Z</dc:date>
    <item>
      <title>Getting all permissions from a starting node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122890#M33654</link>
      <description>&lt;P&gt;EN : Hello ! I would like to output a list (.json) with the permissions (inherited or added on the node) of each node, from a starting node. Thank you in advance !&lt;/P&gt;&lt;P&gt;FR : Bonjour !&amp;nbsp; J'aimerais pouvoir sortir une liste sous forme de .json avec les permissions (héritées ou ajoutées sur le noeud) de chaque noeud, depuis un noeud de base. Merci d'avance !&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 14:59:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122890#M33654</guid>
      <dc:creator>LoicNicolet</dc:creator>
      <dc:date>2021-02-22T14:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all permissions from a starting node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122891#M33655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/84807"&gt;@LoicNicolet&lt;/A&gt;&amp;nbsp;&amp;amp; welcome to Alfresco!&lt;/P&gt;
&lt;P&gt;Passing the nodeId to the&amp;nbsp;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/getNode" target="_self" rel="nofollow noopener noreferrer"&gt;getNode&lt;/A&gt; API will return JSON information about the node, including its permissions.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;},
    "permissions": {
      "isInheritanceEnabled": true,
      "inherited": [
        {
          "authorityId": "string",
          "name": "string",
          "accessStatus": "ALLOWED"
        }
      ],
      "locallySet": [
        {
          "authorityId": "string",
          "name": "string",
          "accessStatus": "ALLOWED"
        }
      ],
      "settable": [
        "string"
      ]
    }&lt;/PRE&gt;
&lt;P&gt;Gavin Cornwell's &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-blog/v1-rest-api-10-things-you-should-know/ba-p/287692" target="_self" rel="nofollow noopener noreferrer"&gt;API tutorial series&lt;/A&gt; is the place to start.&lt;/P&gt;

&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:30:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122891#M33655</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-02-22T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all permissions from a starting node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122892#M33656</link>
      <description>&lt;P&gt;Thanks for the reply, but that's not really what i would like to do.&lt;/P&gt;&lt;P&gt;I want to make a script that iterates through all the children, from a starting node, and take out the permissions from every child.&lt;/P&gt;&lt;P&gt;Thank's in advance !&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 06:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122892#M33656</guid>
      <dc:creator>LoicNicolet</dc:creator>
      <dc:date>2021-02-23T06:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all permissions from a starting node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122893#M33657</link>
      <description>&lt;P&gt;You can either use the REST API, which Eddie suggested, and that will give you the permissions for a node. You can then continue to traverse the tree using the REST API grabbing the permissions from each node as you go.&lt;/P&gt;
&lt;P&gt;The downside of this approach is that you'll make many HTTP requests for a tree of significant size.&lt;/P&gt;
&lt;P&gt;Alternatively, you can write a web script. If you use JavaScript for your web script controller, the ScriptNode object has a getChildren method and a directPermissions property. Using those in combination you can recursively traverse the tree at any starting point using directPermissions to get the perms and using getChildren to get a list of each folder's children.&lt;/P&gt;
&lt;P&gt;The downside of this approach is that your web script might timeout or run out of memory if the tree is extremely large.&lt;/P&gt;
&lt;P&gt;Either way works.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 20:37:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-all-permissions-from-a-starting-node/m-p/122893#M33657</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2021-02-23T20:37:06Z</dc:date>
    </item>
  </channel>
</rss>

