# revokeRoleFromUser

## Overview

Removes a role from a user, revoking the role's permissions.

## Modules Commands Used

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