Check the user's group and do the redirection.