03-28-2019 04:44 PM
Dear All this is my first time in the forum. Please I am really sorry if my question is too basic.
I am creating a document model with a field called "Revisors" where one or several users must be selected (those users will be part of the authoring of the document, so it is important they are in the metadata of the document. Instead of using a List of Values, I would like to use the list of users in the system. Or at least, a group. Can it be done?
Thank you very much in advance.
Ivan
03-29-2019 04:49 AM
You can use Alfresco's user picker for your case. in your model mark the property of "Revisors" as multiple. next add a form control in share-config-custom.xml like this
<control template="/org/alfresco/components/form/controls/authority.ftl" >
<control-param name="startLocation"></control-param>
<control-param name="authorityType">ALL</control-param>
<control-param name="deepSearch">true</control-param>
</control>
The authority.ftl contains the picker. if you want to pick only users then in control-param "authorityType" use "USER", for groups use "GROUP".
07-14-2021 08:52 AM
I know this is an old post, but I have the same problem. Can you give more details to how implement this? If I put this, nothing happens in my picker
<field id="my:assignee" label-id="workflow.field.assignee.coAuthors" set="assignee" > <control template="/org/alfresco/components/form/controls/authority.ftl" > <control-param name="startLocation"></control-param> <control-param name="authorityType">ALL</control-param> <control-param name="deepSearch">true</control-param> </control> </field>
Explore our Alfresco products with the links below. Use labels to filter content by product module.