# assignPermissionToRole

## Overview

Assigns a permission to a role, granting that permission to all users with the role.

## Modules Commands Used

- `user-management.assignPermissionToRole` — Creates a role-permission association

## Exception Handling

| Error Code           | Description                                    |
| -------------------- | ---------------------------------------------- |
| ROLE_NOT_FOUND       | The specified role does not exist       |
| PERMISSION_NOT_FOUND | The specified permission does not exist |
