code: def get_link_by_email(self, user_email):
          
          try:
              user = User.objects.get(email=user_email)
              try:
                  return self.get(user_id=user.id)
              except EnterpriseCustomerUser.DoesNotExist:
                  pass
          except User.DoesNotExist:
              pass
  
          try:
              return PendingEnterpriseCustomerUser.objects.get(user_email=user_email)
          except PendingEnterpriseCustomerUser.DoesNotExist:
              pass
  
          return None
docs: Return link by email.