In a view of users, I'm trying to restrict them to users that do not have a particuklar rol. However, the options for filtering users, based on roles seem very confusing:
Operator
- Is one of
- Is all of
- Is none of
- Only has the 'Authenticated' role
- Has roles in addition to 'Authenticated'
plus a list select of existing roles.
I don't think I can achieve my goal using any of these options.
What I want to do is, in SQL:
select U.* from {users} U left join {users_roles} UR on U.uid = UR.uid and UR.role = ? where UR.uid is null
Am I missing something here, or is it indeed not possible with just the core modules?
What are the alternative options? Use of yet another module that I don't know of, or can I make a module myself that adds this functionaliy?
Afaik when you use "is none of" [selected roles] it will show only those who don't have the selected role(s).