cancel
Showing results for 
Search instead for 
Did you mean: 

User List in Document Model field

ivanperino
Champ in-the-making
Champ in-the-making

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

2 REPLIES 2

abbask01
Star Collaborator
Star Collaborator

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".

Regards,
Abbas

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>