[rt-users] Checking GroupMembership in code
Andy Harrison
aharrison at gmail.com
Sat Feb 19 11:41:57 EST 2005
On Thu, 17 Feb 2005 18:48:13 +0000 (GMT), Oluwatomisin Ilori
<tomisilori at yahoo.co.uk> wrote:
> Hi all,
> Please can anyone help me out with the code snippet to check and retrieve
> the Group a particular user belongs to so that i can do certain things bases
> on the GroupID or name returned.
> Thanks.
A user can belong to any number of groups and there is no designation
for any sort of "primary" group.
You need to come at it from the other direction, take a group and
determine if a user is a member of that group. You can do that with
my little snippet here:
http://wiki.bestpractical.com/admin/index.cgi?GroupMembershipCheck
--
Andy Harrison
More information about the rt-users
mailing list