# assignRoleToUser

## Overview

Assigns a role to a user, granting the role's permissions.

## Modules Commands Used

- `user-management.assignRoleToUser` — Creates a user-role association

## Exception Handling

| Error Code           | Description                              |
| -------------------- | ---------------------------------------- |
| USER_NOT_FOUND  | The specified user does not exist |
| ROLE_NOT_FOUND  | The specified role does not exist |
| USER_NOT_ACTIVE | The user is not in ACTIVE status  |
