Model
Role
Magento\Authorization\Model\ResourceModel\Role
What it does
This resource model manages database operations for admin roles in Magento 2's authorization system.
Developers use it to interact with the authorization_role table when creating, updating, or deleting admin roles, and to retrieve associated users for a specific role.
It handles the hierarchical structure of roles (tree levels) and automatically cleans menu cache when roles change.
Public Methods
- getRoleUsers()