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:
processId=0participantId=0