Updated group membership logic

Reversed algorithm to use 'memberOf' attribute on the user for resolving
group membership