Hi @gokul.kesharwani,
Welcome to the Community!
Did you try this? I am not sure it will work, as this likely uses the signup endpoint which doesn’t allow for it.
You would probably be better off using a post user registration hook.
Check out this topic where it is described in detail: