> For the complete documentation index, see [llms.txt](https://docs.discordbotstudio.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discordbotstudio.org/response-nodes/user-action-category/add-role-to-user.md).

# Add Role to User

Ensure that your bot has a role at least as high as the one it's trying to give to a user, otherwise this will not work.

| Field         | Description                                                                                                                                                     |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **User**      | The user to add the role for. This should evaluate to an id or tag; you can manually copy a user's id or get it programmatically by using a user type variable. |
| **Role name** | The name of the role to give to this user                                                                                                                       |
