How to hook into Add New Member in BuddyPress

In order to get the user id when a user is registered, hook into bp_core_signup_user:

add_action('bp_core_signup_user', 'doMyFunction', 10, 5);

function doMyFunction($user_id, $user_login, $user_password, $user_email, $usermeta){
    //do stuff
}

It supplies the user id as the first parameter.