# revokePermissionFromRole

## Overview

Removes a permission from a role, revoking that permission from all users with the role.

## Modules Commands Used

- `user-management.revokePermissionFromRole` — Removes 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    |
| ASSIGNMENT_NOT_FOUND | The permission is not assigned to the role |
