Get all users with AuthAssignment and its parents

Hi everybody,

how could I search all users witch access is an AuthAssignment or its parents.

Example: all users verifying Yii::app()->user->checkAccess(‘planning’);

My problem is that AuthItem "planning" has child "admin".

Get all user with User::model()->findAll() and check all one by one?

Is there another way?

Thanks a lot!


If you use the CDbAuthManager and manage your roles in the db too, you should be able to create a sql-query to find the users with specific authitems.

Yes, but I answered to know if something already exists!