Switched filtering and authorization

In methods getAllRichGroupsWithAttributesByName,
getRichSubGroupsWithAttributesByName,
getRichGroupByIdWithAttributesByNames was swapped filtering attributes and
authorization to group, because filtering is more complex operation so its
better to filter from smaller pool of groups.