Hi Folks!

How do I list all groups that a user belong? I've found out that Auth has 
this function:

groups(self)
displays the groups and their roles for the logged in user

I dont manage to get it working. I've tried something like this:

def myGroups():
    return dict(auth.groups(auth.user_id))

and get this error:
<type 'exceptions.TypeError'> groups() takes exactly 1 argument (2 given)

any idea on how to do this properly? Thanks!

-- 



Reply via email to