def METHOD_NAME(existing_user, user, org):
    only_sso_login = OrgProcessor.get_organization(org).get(FeatureMappings.ONLY_SSO_LOGIN.value)
    if not existing_user:
        OrgProcessor.upsert_user_org_mapping(user, org, FeatureMappings.ONLY_SSO_LOGIN.value, only_sso_login)
    else:
        if OrgProcessor.get_user_org_mapping(user, FeatureMappings.ONLY_SSO_LOGIN.value, org) is None:
            OrgProcessor.upsert_user_org_mapping(user, org, FeatureMappings.ONLY_SSO_LOGIN.value, only_sso_login)