<?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: Restrict visibility of custom aspect in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144516#M38353</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-restrict-visibility-of-some-metadata/td-p/301338" target="_self" rel="nofollow noopener noreferrer"&gt;Related with metadata visibility by groups&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I hope this post can help you.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cris.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 08:27:37 GMT</pubDate>
    <dc:creator>cristinamr</dc:creator>
    <dc:date>2021-07-08T08:27:37Z</dc:date>
    <item>
      <title>Restrict visibility of custom aspect</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144515#M38352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have some documents with custom aspect (many properties). I want show this custom aspect only for specific user group, and hide this aspect for other users.&lt;/P&gt;&lt;P&gt;There is a way to do this?&lt;/P&gt;&lt;P&gt;Alternatively, there is other way to show some document's metadata only for specific users?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:31:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144515#M38352</guid>
      <dc:creator>Lvit</dc:creator>
      <dc:date>2021-07-07T17:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict visibility of custom aspect</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144516#M38353</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-restrict-visibility-of-some-metadata/td-p/301338" target="_self" rel="nofollow noopener noreferrer"&gt;Related with metadata visibility by groups&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I hope this post can help you.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cris.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144516#M38353</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-07-08T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict visibility of custom aspect</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144517#M38354</link>
      <description>&lt;P&gt;The linked post is a (rather low-level) way of dealing with restricted visibility. What you can always do is use the Surf Extension module system to differentiate visibility of metadata via configuration, since Surf Extension modules can be deployed / activated specifically based on the groups of which the current user is a member. Using Surf Extension modules, you can define one module with a metadata form configuration that applies to all groups, and a second module with an "add-on" form configuration that only applies to a specific group of privileged users. Alfresco Share merges form configurations at runtime from all the valid sources (static global config as well as extension modules) to build an effective config based on the current user.&lt;/P&gt;
&lt;P&gt;In one customer project e.g. I have the following config for something similar:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8' ?&amp;gt;
&amp;lt;extension&amp;gt;
    &amp;lt;modules&amp;gt;
        &amp;lt;module&amp;gt;
            &amp;lt;id&amp;gt;${moduleId} - Extensions&amp;lt;/id&amp;gt;
            &amp;lt;description&amp;gt;${project.name} - Extensions&amp;lt;/description&amp;gt;
            &amp;lt;version&amp;gt;${noSnapshotVersion}&amp;lt;/version&amp;gt;
            &amp;lt;auto-deploy&amp;gt;true&amp;lt;/auto-deploy&amp;gt;

            &amp;lt;configurations&amp;gt;
                &amp;lt;config evaluator="node-type"
                    condition="acme:content"&amp;gt;
                    &amp;lt;forms&amp;gt;
                        &amp;lt;form id="doclib-simple-metadata"&amp;gt;
                            &amp;lt;appearance&amp;gt;
                                &amp;lt;field id="cm:taggable"&amp;gt;
                                    &amp;lt;control&amp;gt;
                                        &amp;lt;control-param name="createNewItemUri"&amp;gt;&amp;lt;/control-param&amp;gt;
                                        &amp;lt;control-param name="createNewItemIcon"&amp;gt;&amp;lt;/control-param&amp;gt;
                                    &amp;lt;/control&amp;gt;
                                &amp;lt;/field&amp;gt;
                            &amp;lt;/appearance&amp;gt;
                        &amp;lt;/form&amp;gt;
                    &amp;lt;/forms&amp;gt;
            &amp;lt;/configurations&amp;gt;
        &amp;lt;/module&amp;gt;

        &amp;lt;module&amp;gt;
            &amp;lt;id&amp;gt;${moduleId} - Admin Extensions&amp;lt;/id&amp;gt;
            &amp;lt;description&amp;gt;${project.name} - Admin Extensions&amp;lt;/description&amp;gt;
            &amp;lt;version&amp;gt;${noSnapshotVersion}&amp;lt;/version&amp;gt;
            &amp;lt;auto-deploy&amp;gt;true&amp;lt;/auto-deploy&amp;gt;
            
            &amp;lt;evaluator type="group.module.evaluator"&amp;gt;
                &amp;lt;params&amp;gt;
                    &amp;lt;groups&amp;gt;GROUP_ALFRESCO_ADMINISTRATORS&amp;lt;/groups&amp;gt;
                    &amp;lt;relation&amp;gt;OR&amp;lt;/relation&amp;gt;
                &amp;lt;/params&amp;gt;
            &amp;lt;/evaluator&amp;gt;

            &amp;lt;configurations&amp;gt;
                &amp;lt;config evaluator="node-type"
                    condition="acme:content"&amp;gt;
                    &amp;lt;forms&amp;gt;
                        &amp;lt;form id="doclib-simple-metadata"&amp;gt;
                            &amp;lt;appearance&amp;gt;
                                &amp;lt;field id="cm:taggable"&amp;gt;
                                    &amp;lt;control&amp;gt;
                                        &amp;lt;control-param name="createNewItemUri"&amp;gt;/api/tag/workspace/SpacesStore&amp;lt;/control-param&amp;gt;
                                        &amp;lt;control-param name="createNewItemIcon"&amp;gt;tag&amp;lt;/control-param&amp;gt;
                                    &amp;lt;/control&amp;gt;
                                &amp;lt;/field&amp;gt;
                            &amp;lt;/appearance&amp;gt;
                        &amp;lt;/form&amp;gt;
                    &amp;lt;/forms&amp;gt;
                &amp;lt;/config&amp;gt;
            &amp;lt;/configurations&amp;gt;
        &amp;lt;/module&amp;gt;
    &amp;lt;/modules&amp;gt;
&amp;lt;/extension&amp;gt;&lt;/PRE&gt;
&lt;P&gt;to disable the ability to create new tags in a form for non-admins, and re-allow it for admins.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:53:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-visibility-of-custom-aspect/m-p/144517#M38354</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-07-08T15:53:37Z</dc:date>
    </item>
  </channel>
</rss>

