# Assign task to user

**URL:** <https://community.ofelia.com/t/assign-task-to-user/6743>\
**Category:** Q&A\
**Created:** [7 December 2015 17:36 UTC](https://community.ofelia.com/t/assign-task-to-user/6743 "2015-12-07T17:36:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markus.hoffmann.2](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@markus.hoffmann.2](https://community.ofelia.com/u/markus.hoffmann.2)\
**Post date:** [7 December 2015 17:36 UTC](https://community.ofelia.com/t/assign-task-to-user/6743/1 "2015-12-07T17:36:44Z")

</div>

Hi all!

I would like to set a variable (user name) in the formular and assign the following task to this user.  
Which is the best way to accomplish this? Another try was getting the user id of the user name and set it as filter. But i’m not really sure how to get the id (by script?)

Best regards

---

<div class="post-metadata">

**Author:** ![dyum](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@dyum](https://community.ofelia.com/u/dyum)\
**Post date:** [9 December 2015 09:35 UTC](https://community.ofelia.com/t/assign-task-to-user/6743/2 "2015-12-09T09:35:48Z")

</div>

The Engine API provides an IdentityAPI interface from where you could get the user id. Hope this would help.

---

<div class="post-metadata">

**Author:** ![markus.hoffmann.2](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@markus.hoffmann.2](https://community.ofelia.com/u/markus.hoffmann.2)\
**Post date:** [9 December 2015 09:45 UTC](https://community.ofelia.com/t/assign-task-to-user/6743/3 "2015-12-09T09:45:00Z")

</div>

Thanks for your reply! I will give it a try!
