On 20 April 2012 15:37, Jim Steil <j...@qlf.com> wrote: > That's not quite it either. This is checking for a group 'role' as > opposed to looking for all users that have a specific permission > (auth_permission). >
Then adapt it. Determine the group name that have the specific permission and from there it is easy to determine the id's of the members of that group. Something like reds = [x.id for x in db((db.auth_user.id == db.auth_membership.user_id)&( db.auth_group.id == db.auth_permission.group_id) & (db.auth.permission.name== 'kb_ed')).select( db.auth_user.id)] Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)