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