How can I insert users details in to CRM as soon as user signup on discourse

Why you do not try this in reverse order. Let user register inside CRM and wired to discourse by SSO. So when user log in discpurse CRM will provide additional info throught SSO call