(request, new_web_user, async_signup)
If available, this makes sure we apply any relevant user data
        :param request: HttpRequest
        :param new_web_user: WebUser
        :param async_signup: AsyncSignupRequest
If available, this makes sure we apply any relevant user data
        :param request: HttpRequest
        :param new_web_user: WebUser
        :param async_signup: AsyncSignupRequest
If available this makes sure we apply any relevant user data : param request : HttpRequest : param new_web_user : WebUser : param async_signup : AsyncSignupRequest
def _process_new_user_data(request, new_web_user, async_signup):
        """
        If available, this makes sure we apply any relevant user data
        :param request: HttpRequest
        :param new_web_user: WebUser
        :param async_signup: AsyncSignupRequest
        """
        if not async_signup:
            if settings.IS_SAAS_ENVIRONMENT:
                track_workflow(
                    new_web_user.username,
                    "Requested New Account via SSO (Bypassed Signup Form)",
                    {
                        'environment': settings.SERVER_ENVIRONMENT,
                    }
                )
            return

        if async_signup.invitation:
            return

        if async_signup.phone_number:
            new_web_user.phone_numbers.append(async_signup.phone_number)
            new_web_user.save()

        if settings.IS_SAAS_ENVIRONMENT:
            track_workflow(
                new_web_user.username,
                "Requested New Account via SSO",
                {
                    'environment': settings.SERVER_ENVIRONMENT,
                }
            )
            if async_signup.persona:
                track_workflow(
                    new_web_user.username,
                    "Persona Field Filled Out via SSO",
                    {
                        'personachoice': async_signup.persona,
                        'personaother': async_signup.persona_other,
                    }
                )
                track_web_user_registration_hubspot(
                    request,
                    new_web_user,
                    async_signup.additional_hubspot_data,
                )
            else:
                track_workflow(
                    new_web_user.username,
                    "New User created through SSO, but Persona info missing"
                )
def _process_new_user_data ( request , new_web_user , async_signup ) : if not async_signup : if settings . IS_SAAS_ENVIRONMENT : track_workflow ( new_web_user . username , "Requested New Account via SSO (Bypassed Signup Form)" , { 'environment' : settings . SERVER_ENVIRONMENT , } ) return if async_signup . invitation : return if async_signup . phone_number : new_web_user . phone_numbers . append ( async_signup . phone_number ) new_web_user . save ( ) if settings . IS_SAAS_ENVIRONMENT : track_workflow ( new_web_user . username , "Requested New Account via SSO" , { 'environment' : settings . SERVER_ENVIRONMENT , } ) if async_signup . persona : track_workflow ( new_web_user . username , "Persona Field Filled Out via SSO" , { 'personachoice' : async_signup . persona , 'personaother' : async_signup . persona_other , } ) track_web_user_registration_hubspot ( request , new_web_user , async_signup . additional_hubspot_data , ) else : track_workflow ( new_web_user . username , "New User created through SSO, but Persona info missing" )