Overview
Sometimes you want to create Workflow Assignments just for specific User Groups. This article shows you step-by-step how to do just that as an M-Files Admin.
There is open improvement (ID 17150) to make user groups available in assignments.
The completed improvement will be is listed on Release note pages after it has been implemented.
Workaround
First open M-Files Admin and navigate to your Vault and under Metadata Structure (Flat View) choose Property Definitions. Create a new Property Definition with the following settings:
In this example, Assignment object type is used and separate workflow assignment is created for this Assignment object. Any other object type could be used.
Now create a new Workflow with two states: No State and Assign to Group
For the Assign to Group -state, go to Actions-tab of the state Properties and tick the 'Create separate assignments' box. Now click Add.
On the right side of the Assign to -box, click Add… and tick User from metadata: From the drop-down list, choose the Property 'Group' we created in an earlier step.
Click Add. Set Select Assignment Class as Assignment, write a title and a description and click OK.
Remember to Save the Workflow.
Now when you create a new Assignment object, choose Add property and add 'Group'. Then you can choose which User Group you want to assign the Assignment to, set to 'Assign to Group' -Workflow and click Create.
After this there will be separate assignment object created by workflow, which has users in Assigned to property based on chosen user group:
