Hi,
Since you're using 0.9.840, could it be a group cache issue? If you
recently added the user to a fifth group but didn't refresh the cache,
that could explain it.
See 
Regards,
Robin
On 05/04/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
  Hi me again,
 This works perfectly for a user with 4 or less groups but, if there are more than 4
groups, it only returns 4 groups?  Or maybe there is another problem causing this?
 -----Original Message-----
 From: Esbach, Brandon
 Sent: 04 April 2006 08:53
 To: 'xwiki-users(a)objectweb.org'
 Subject: RE: [xwiki-users]
 Thanks, that's perfect!
 -----Original Message-----
 From: jeremi joslin [mailto:jeremi23@gmail.com]
 Sent: 04 April 2006 02:20
 To: xwiki-users(a)objectweb.org
 Subject: Re: [xwiki-users]
 Oh, maybe that change in the last version.
 try :
 $context.xWiki.groupService.listGroupsForUser($context.user, $context.context)
 Jérémi
 On 4/4/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
  Hi,
 Thanks for the fast reply.
 This would be on a local Xwiki installation, ver 0.9.840
 I get an error when I run that:
 Error number 4001 in 4: Error while parsing velocity page
 XWiki.XWikiClasses Wrapped Exception: Invocation of method
 'listGroupsForUser' in class
 com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl threw exception
 class java.lang.NullPointerException : null
 -----Original Message-----
 From: jeremi joslin [mailto:jeremi23@gmail.com]
 Sent: 03 April 2006 16:37
 To: xwiki-users(a)objectweb.org
 Subject: Re: [xwiki-users]
 On 4/3/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
 Hi Folks
 I was wondering if there is a simple way to determine user-group membership?
  Simpler than spinning through all members of that group and doing a
 string match with $context.user at the least? 
 Hi,
 it's depends if you are in the farm or not. if you are, it's not possible I
think.
 If not, and if you have the programming right you can do :
 $context.xWiki.groupService.listGroupsForUser($user.user.user,
 $context.context)
 You will receive a collection of documents representing groups.
 Jérémi
 --
 Blog: 
http://www.jeremi.info
 LinkedIn: 
https://www.linkedin.com/profile?viewProfile=&key=1437724
 Project Manager XWiki: 
http://www.xwiki.org
 skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
 --
 You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page:
 
http://www.objectweb.org/wws
 
 --
 Blog: 
http://www.jeremi.info
 LinkedIn: 
https://www.linkedin.com/profile?viewProfile=&key=1437724
 Project Manager XWiki: 
http://www.xwiki.org
 skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
 --
 You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page: 
http://www.objectweb.org/wws