shouldn't it be: return ($group->HasMemberRecursively($principal)); instead of return ($group->HasMember($principal)); at the end of the subroutine? Dirk.