How to get user id which is done by buddypress [closed]

if you put this action you will get the new user_id that wordpress provide when new user register

add_action("bp_core_activated_user","bp_autologin_on_activation",40,3);
function bp_autologin_on_activation($user_id,$key,$user) {

...

}

I hope help

tech