Registration - Connect - How to find the existing users by email and assign new users to a group
![Humble](https://secure.gravatar.com/avatar/5d2f19e939c7d44245eb2e5b1541d9f9/?default=https%3A%2F%2Fvanillicon.com%2F78d8edf38e71d7b43a85a5f89c54282e_100.png&rating=g&size=100)
I have few questions on How the Connect and then the Twitter, Google, Facebook, OpenID OAuth works.
I basically converted my forum to Vanilla Forum by importing the members/messages.
When the existing member sign in using OAuth, then the email we get from OAuth profile might match with existing members email, then I don't want to create new user but would like to associate the existing user to the OAuth detailis.
When a new member sign in using OAuth, I want them to be part of a particular group like (Confirm Email group). So that I can put them on Moderation for a while till I find them not a spammer.
I saw the twitter, facebook and google plugins code and looked at the Base_ConnectData_Handler. At the end of it we are setting some values to the form, but don't know how to search the users by email and put them in a particular group.
Thanks