Hi,<br>
<br>
Trying to determine if a user is part of a group.  The following
works fine when the user is in the group but fails when not.  <br>
<br>
<pre>my $Name = "GroupName";<br>my $Groups = new RT::Groups($RT::SystemUser);<br>$Groups->LimitToUserDefinedGroups();<br>$Groups->Limit(FIELD => "Name", OPERATOR => "=", VALUE => "$Name");
<br>$ggroups->WithMember(PrincipalId => $session{'CurrentUser'}->id, Recusively => 0);<br><br>my $Groupid = $Groups->First->Id;<br></pre>
The above line is where it fails when user is not part of the group.<br>
<br>
Also, not sure if Recusively => 0 is coded properly.<br>
<br>
Any suggestions will be appreciated and thanks.<br>
<br>
Roman<br>