getUserIdsByRole() public method (available since version 2.0.7)
Returns all role assignment information for the specified role.
| public yii\rbac\Assignment[] getUserIdsByRole ( $roleName ) | ||
|---|---|---|
| $roleName | string | |
| return | yii\rbac\Assignment[] |
The assignments. An empty array will be returned if role is not assigned to any user. |
Please login to continue.