# How to add user delegations for all processes and participants via API

**URL:** <https://discuss.workflowgen.com/t/how-to-add-user-delegations-for-all-processes-and-participants-via-api/328>\
**Category:** Web API\
**Created:** [January 1, 2016, 5:06am UTC](https://discuss.workflowgen.com/t/how-to-add-user-delegations-for-all-processes-and-participants-via-api/328 "2016-01-01T05:06:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [January 1, 2016, 5:06am UTC](https://discuss.workflowgen.com/t/how-to-add-user-delegations-for-all-processes-and-participants-via-api/328/1 "2016-01-01T05:06:02Z")

</div>

You can add delegations for all processes and participants (rather than for single processes and participants) to a user via the API by using the `RuntimeService.AddDelegation` method.

To do this, set the `processId` and `participantId` parameters to `0`:

```auto
processId=0participantId=0

```
