<?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: How to restrict visibility of some metadata? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108279#M30439</link>
    <description>&lt;P&gt;May be a hint, you can create your own edit-mode, create-mode, view-mode or field type based&amp;nbsp;&amp;nbsp;freemarker templates and use it in the form config. I dont have full solution yet but this is something which can be tried.&lt;/P&gt;
&lt;P&gt;From config reference:&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/references/forms-reference.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/references/forms-reference.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From within the template, you can call a repository webscript to get the permission ([ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION') for current user and show/hide control based on response.&lt;/P&gt;
&lt;P&gt;Example of calling a repo ws from ftl file:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;//&amp;lt;![CDATA[
    var checkPermission = function(res){
        var result = eval('(' + res.serverResponse.responseText + ')');
        // process the response and set any flag for hiding and showing control.
    }

Alfresco.util.Ajax.jsonGet({
    url : Alfresco.constants.PROXY_URI + "/getPermission?currentUser="+&lt;SPAN&gt;user&lt;/SPAN&gt;,
    successCallback : {
        fn : checkPermission,
        scope : this
    },
    failureCallback : {
        fn : function() {},
        scope : this
    }
});
//]]&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Aug 2020 16:10:20 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2020-08-25T16:10:20Z</dc:date>
    <item>
      <title>How to restrict visibility of some metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108275#M30435</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is it possible to &lt;STRONG&gt;restrict the visibility&lt;/STRONG&gt; of some content's metadata &lt;STRONG&gt;only for some groups&lt;/STRONG&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the&amp;nbsp;&lt;EM&gt;top-secret&lt;/EM&gt; property should only be visible to Site Managers, not Consumers.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 09:56:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108275#M30435</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-08-25T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict visibility of some metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108276#M30436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/8063"&gt;@upforsin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I believe you can set the 'field-visibility' in&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;share-config-custom.xml&lt;/EM&gt;. There's an example &lt;A title="Opens in a new page" href="https://stackoverflow.com/questions/10219543/is-it-possible-to-hide-the-mime-type-and-tags-in-alfresco-share" target="_blank" rel="noopener nofollow noreferrer"&gt;here&lt;/A&gt;.&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 12:27:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108276#M30436</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-08-25T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict visibility of some metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108277#M30437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know (&lt;A href="https://docs.alfresco.com/6.1/tasks/forms-type-display.html" target="_self" rel="nofollow noopener noreferrer"&gt;doc&lt;/A&gt;), using '&lt;SPAN&gt;field-visibility' I can hide/show the property for everyone. What if I want to show it only for some groups?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:31:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108277#M30437</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-08-25T14:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict visibility of some metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108278#M30438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/8063"&gt;@upforsin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies, I skipped over the group requirement. There is a post on a &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-disable-viewing-a-metadata-that-is-properties-of-a/td-p/299654" target="_blank" rel="nofollow noopener noreferrer"&gt;related requirement&lt;/A&gt; that might be of interest.&lt;/P&gt;
&lt;P&gt;&lt;A title="Opens in a new tab" href="https://xenit.eu/alfred-edge/" target="_self" rel="nofollow noopener noreferrer"&gt;Xenit&lt;/A&gt; have a commercial solution that alllows you to "&lt;SPAN&gt;Apply fine-grained mandatory-access-controls based on user-roles and document metadata" - whether this is just for access control or includes control over Share "show/hide" behaviour I don't know.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:53:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108278#M30438</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-08-25T15:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict visibility of some metadata?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108279#M30439</link>
      <description>&lt;P&gt;May be a hint, you can create your own edit-mode, create-mode, view-mode or field type based&amp;nbsp;&amp;nbsp;freemarker templates and use it in the form config. I dont have full solution yet but this is something which can be tried.&lt;/P&gt;
&lt;P&gt;From config reference:&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/references/forms-reference.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/references/forms-reference.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From within the template, you can call a repository webscript to get the permission ([ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION') for current user and show/hide control based on response.&lt;/P&gt;
&lt;P&gt;Example of calling a repo ws from ftl file:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;//&amp;lt;![CDATA[
    var checkPermission = function(res){
        var result = eval('(' + res.serverResponse.responseText + ')');
        // process the response and set any flag for hiding and showing control.
    }

Alfresco.util.Ajax.jsonGet({
    url : Alfresco.constants.PROXY_URI + "/getPermission?currentUser="+&lt;SPAN&gt;user&lt;/SPAN&gt;,
    successCallback : {
        fn : checkPermission,
        scope : this
    },
    failureCallback : {
        fn : function() {},
        scope : this
    }
});
//]]&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2020 16:10:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-restrict-visibility-of-some-metadata/m-p/108279#M30439</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-25T16:10:20Z</dc:date>
    </item>
  </channel>
</rss>

