# Assign task to user

**URL:** <https://community.ofelia.com/t/assign-task-to-user/10085>\
**Category:** Q&A\
**Created:** [20 March 2020 10:15 UTC](https://community.ofelia.com/t/assign-task-to-user/10085 "2020-03-20T10:15:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathyusha0525\_13847](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@prathyusha0525\_13847](https://community.ofelia.com/u/prathyusha0525_13847)\
**Post date:** [20 March 2020 10:15 UTC](https://community.ofelia.com/t/assign-task-to-user/10085/1 "2020-03-20T10:15:08Z")

</div>

How to assign task to user with customize button, when&nbsp;actors are&nbsp;mapped to roles.

In Bonita portal we have take option to assign task to logged in user.

like that is there any possibility to create take button in Bonita application page to assign task to logged in user.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [20 March 2020 10:32 UTC](https://community.ofelia.com/t/assign-task-to-user/10085/2 "2020-03-20T10:32:51Z")

</div>

Hi,&nbsp;

&nbsp;

There is an API to update a Human task, and specify an assigned id:  
[https://documentation.bonitasoft.com/bonita/7.10/bpm-api#toc3](https://documentation.bonitasoft.com/bonita/7.10/bpm-api#toc3)

So the solution to create a "take button" from an UID page would be to create a button with a PUT action, and to send the required payload using the logged in user.&nbsp;

&nbsp;

An alternative solution would be to use the _assign before submit_ option in the submit buttons of your forms. I

f you check this option, then you won't have to perform take actions anymore, task will be assigned to the current logged in user just before to be submitted.&nbsp;  
  
Regards,&nbsp;

Adrien

---

<div class="post-metadata">

**Author:** ![prathyusha0525\_13847](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@prathyusha0525\_13847](https://community.ofelia.com/u/prathyusha0525_13847)\
**Post date:** [20 March 2020 12:20 UTC](https://community.ofelia.com/t/assign-task-to-user/10085/3 "2020-03-20T12:20:32Z")

</div>

hi&nbsp;adrien, I'll will check that option and thank you for answering.

&nbsp;
