Hi,
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.
There is a way to do this?
Alternatively, there is other way to show some document's metadata only for specific users?
Thanks
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.
In one customer project e.g. I have the following config for something similar:
<?xml version='1.0' encoding='UTF-8' ?> <extension> <modules> <module> <id>${moduleId} - Extensions</id> <description>${project.name} - Extensions</description> <version>${noSnapshotVersion}</version> <auto-deploy>true</auto-deploy> <configurations> <config evaluator="node-type" condition="acme:content"> <forms> <form id="doclib-simple-metadata"> <appearance> <field id="cm:taggable"> <control> <control-param name="createNewItemUri"></control-param> <control-param name="createNewItemIcon"></control-param> </control> </field> </appearance> </form> </forms> </configurations> </module> <module> <id>${moduleId} - Admin Extensions</id> <description>${project.name} - Admin Extensions</description> <version>${noSnapshotVersion}</version> <auto-deploy>true</auto-deploy> <evaluator type="group.module.evaluator"> <params> <groups>GROUP_ALFRESCO_ADMINISTRATORS</groups> <relation>OR</relation> </params> </evaluator> <configurations> <config evaluator="node-type" condition="acme:content"> <forms> <form id="doclib-simple-metadata"> <appearance> <field id="cm:taggable"> <control> <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param> <control-param name="createNewItemIcon">tag</control-param> </control> </field> </appearance> </form> </forms> </config> </configurations> </module> </modules> </extension>
to disable the ability to create new tags in a form for non-admins, and re-allow it for admins.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.