# Function; Add user to role
FUNCTION ==> add-to-role

This function associates an existing user with an existing role.


Below is the exact function signature and JSON invocation format for this function.

```plaintext
___
FUNCTION_INVOCATION[/misc/workflows/workflows/users_roles/add-to-role.hl]:
{
  "username": "[STRING_VALUE]",
  "role": "[STRING_VALUE]"
}
___
```

Arguments:

* `username` is mandatory
* `role` is mandatory

Notice, both the role and the user must exist from before. If you're not sure if they do, you can use the "list-roles" function and the "list-users" function to check.
