Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
listing users with an specific rol
argie01
New
Hi,
is there a way to list all the users that belong to an specific rol?
Thank you!
0
This discussion has been closed.
Comments
SELECT u.UserID, u.Name, r.Name, u.FirstName, u.LastName, u.Email FROM LUM_User AS u, LEFT JOIN LUM_Role AS r USING RoleID WHERE r.Name = 'Banned';
You can change the WHERE clause to
r.RoleID = '1'
and select by the RoleID if you know that, or leave it as-is and use the Role Name. The query will show the User Name, Real Full Name, Email Address, User ID, and Role Name.What exactly are you trying to do? The advanced search in Vanilla is pretty powerful and will show all users in a single so you shouldn't have to use this query.