Function getGroupsForCurrentUser