# Multi-instance to users and groups

**URL:** <https://forum.flowable.org/t/multi-instance-to-users-and-groups/8868>\
**Category:** Flowable Engine\
**Created:** [January 13, 2022, 1:34pm UTC](https://forum.flowable.org/t/multi-instance-to-users-and-groups/8868 "2022-01-13T13:34:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gracepii](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@Gracepii](https://forum.flowable.org/u/Gracepii)\
**Post date:** [January 13, 2022, 1:34pm UTC](https://forum.flowable.org/t/multi-instance-to-users-and-groups/8868/1 "2022-01-13T13:34:40Z")

</div>

I have a variable ‘xxx’ that is an array of groupId or the userId, for example [‘management’, ‘developer’, ‘user01’, ‘service’, ‘user02’, ‘user03’]. The task must be sequentially assigned to the users or groups according to how they are written in the array. How can i tell to flowable that the assigment is a user or a group according to the value of element variabile of the collection (multi instance)?  
I use flowable modeler and this is the example that i wrote, but i don’t know what write in assignment box.  
Can you help me?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/3/3377ad3b2db202f467fe1981b256cad15f4329b2.png)

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [January 14, 2022, 1:09pm UTC](https://forum.flowable.org/t/multi-instance-to-users-and-groups/8868/2 "2022-01-14T13:09:53Z")

</div>

Hi,  
How do you find out that element is group or user?

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [January 24, 2022, 3:52pm UTC](https://forum.flowable.org/t/multi-instance-to-users-and-groups/8868/3 "2022-01-24T15:52:34Z")

</div>

If you only have an array with mixed userId/groupId, that’s impossible. You will need to be able to tell from the String whether it’s a group or user to do the right assignment.
