<?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: Functional permissions in nuxeo in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/functional-permissions-in-nuxeo/m-p/320066#M7067</link>
    <description>&lt;P&gt;ACLs are set on documents. There are the default Read, Write, Everything permssions but they can be customized:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissions"&amp;gt;

        &amp;lt;!--
            customized Write permission
        --&amp;gt;
        &amp;lt;permission name="Write"&amp;gt;
            &amp;lt;remove&amp;gt;Remove&amp;lt;/remove&amp;gt;
        &amp;lt;/permission&amp;gt;

        &amp;lt;!--
            customized ReadWriteAndRemove permission
            does the same as the default nuxeo ReadWrite permission
        --&amp;gt;
        &amp;lt;permission name="ReadWriteAndRemove"&amp;gt;
            &amp;lt;include&amp;gt;Read&amp;lt;/include&amp;gt;
            &amp;lt;include&amp;gt;Write&amp;lt;/include&amp;gt;
            &amp;lt;include&amp;gt;Remove&amp;lt;/include&amp;gt;
        &amp;lt;/permission&amp;gt;

        &amp;lt;!-- custom Permission --&amp;gt;
        &amp;lt;permission name="GetPersistentId"&amp;gt;
            &amp;lt;include&amp;gt;ReadWrite&amp;lt;/include&amp;gt;
        &amp;lt;/permission&amp;gt;
    &amp;lt;/extension&amp;gt;


    &amp;lt;extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissionsVisibility"&amp;gt;
        &amp;lt;visibility&amp;gt;
            &amp;lt;item show="true" order="10"&amp;gt;Read&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="20"&amp;gt;ReadWrite&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="30"&amp;gt;ReadWriteAndRemove&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="40"&amp;gt;Everything&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="50"&amp;gt;GetPersistentId&amp;lt;/item&amp;gt;
        &amp;lt;/visibility&amp;gt;
    &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the WebUI there are slots that have their own permissions (buttons, drawer items, ...). All permissions defined above can be used on the slots:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-slot-content name="addFacetAction" slot="DOCUMENT_ACTIONS" order="2&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;nuxeo-filter document="[[document]]" permission="Write" state="project" type="File"&amp;gt;
	  &amp;lt;template&amp;gt;
		&amp;lt;addfacets-action document="[[document]]"&amp;gt;&amp;lt;/addfacets-action&amp;gt;
	  &amp;lt;/template&amp;gt;
    &amp;lt;/nuxeo-filter&amp;gt;
&amp;lt;/nuxeo-slot-content&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Even though it's a rather late response, I hope it helps.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 08:07:11 GMT</pubDate>
    <dc:creator>ssze_</dc:creator>
    <dc:date>2019-07-25T08:07:11Z</dc:date>
    <item>
      <title>Functional permissions in nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/functional-permissions-in-nuxeo/m-p/320065#M7066</link>
      <description>&lt;P&gt;I have been trying to understand the permission management in nuxeo. As far as my understanding, ACLs are attached to a document, and they contain the information whether a user can read/write/remove the document. I wanted to know if these ACLs are used to display/hide the buttons such as "Edit"/"Delete" on the UI (when we view a particular document) or is there a different mechanism for that.&lt;/P&gt;
&lt;P&gt;I also went through this &lt;A href="https://doc.nuxeo.com/userdoc/managing-permissions/"&gt;link&lt;/A&gt;, which gives the mapping of permissions to allowed functions. In my understanding ACLs control the rendering of different buttons based on different types of access rights. I want to know if my understanding is correct?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:47:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/functional-permissions-in-nuxeo/m-p/320065#M7066</guid>
      <dc:creator>Ritesh_Kumar</dc:creator>
      <dc:date>2019-03-05T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Functional permissions in nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/functional-permissions-in-nuxeo/m-p/320066#M7067</link>
      <description>&lt;P&gt;ACLs are set on documents. There are the default Read, Write, Everything permssions but they can be customized:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissions"&amp;gt;

        &amp;lt;!--
            customized Write permission
        --&amp;gt;
        &amp;lt;permission name="Write"&amp;gt;
            &amp;lt;remove&amp;gt;Remove&amp;lt;/remove&amp;gt;
        &amp;lt;/permission&amp;gt;

        &amp;lt;!--
            customized ReadWriteAndRemove permission
            does the same as the default nuxeo ReadWrite permission
        --&amp;gt;
        &amp;lt;permission name="ReadWriteAndRemove"&amp;gt;
            &amp;lt;include&amp;gt;Read&amp;lt;/include&amp;gt;
            &amp;lt;include&amp;gt;Write&amp;lt;/include&amp;gt;
            &amp;lt;include&amp;gt;Remove&amp;lt;/include&amp;gt;
        &amp;lt;/permission&amp;gt;

        &amp;lt;!-- custom Permission --&amp;gt;
        &amp;lt;permission name="GetPersistentId"&amp;gt;
            &amp;lt;include&amp;gt;ReadWrite&amp;lt;/include&amp;gt;
        &amp;lt;/permission&amp;gt;
    &amp;lt;/extension&amp;gt;


    &amp;lt;extension target="org.nuxeo.ecm.core.security.SecurityService" point="permissionsVisibility"&amp;gt;
        &amp;lt;visibility&amp;gt;
            &amp;lt;item show="true" order="10"&amp;gt;Read&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="20"&amp;gt;ReadWrite&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="30"&amp;gt;ReadWriteAndRemove&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="40"&amp;gt;Everything&amp;lt;/item&amp;gt;
            &amp;lt;item show="true" order="50"&amp;gt;GetPersistentId&amp;lt;/item&amp;gt;
        &amp;lt;/visibility&amp;gt;
    &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the WebUI there are slots that have their own permissions (buttons, drawer items, ...). All permissions defined above can be used on the slots:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-slot-content name="addFacetAction" slot="DOCUMENT_ACTIONS" order="2&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;nuxeo-filter document="[[document]]" permission="Write" state="project" type="File"&amp;gt;
	  &amp;lt;template&amp;gt;
		&amp;lt;addfacets-action document="[[document]]"&amp;gt;&amp;lt;/addfacets-action&amp;gt;
	  &amp;lt;/template&amp;gt;
    &amp;lt;/nuxeo-filter&amp;gt;
&amp;lt;/nuxeo-slot-content&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Even though it's a rather late response, I hope it helps.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:07:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/functional-permissions-in-nuxeo/m-p/320066#M7067</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2019-07-25T08:07:11Z</dc:date>
    </item>
  </channel>
</rss>

