ns are associated with <em>groups</em> which may contain any number of users. Users in a group acquire all the permissions of that group. For example, there is a default group called <code>'administrators'</code> which gives users the <code>'admin'</code> permission, i.e. if you are in the <code>'administrators'</code> group you will have the <code>'admin'</code> permission.</p>
<p>The user object has a many to many of groups the user belongs to. Here's how you could list the groups for the logged in user:<