# Assign Role

> Assign a role to a user.

- ID: `assign_role`
- Type: Block
- Category: [Users](https://inventor.bot/docs/reference/blocks/users.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | ID of the server to assign the role in. |  |
| `user_id` | yes | ID of the user to assign the role to. |  |
| `role_id` | yes | ID of the role to assign. |  |

**Example**

```go
assign_role(Args{
	server_id: trigger.server_id,
	user_id:   "...",
	role_id:   "...",
})
```