Views Roles

Component ID

1937404

Component name

Views Roles

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module exposes the roles table as a base table for views. (Views 3, Drupal 7)

It was created because we needed it for a specific use in project, but there might be other uses.

Our usecase was listing all roles, with all the users underneath it that have that role. You can't just use group by on the role to accomplish this in views because of users with multiple roles. The end result is like a who-is-who based on role.
This was easy to accomplish with this module and Views Field View.

After installing, the fields "Role ID, Role Name and Role Weight" will be available in the Role group in views. Simple as that