docs: def get_user_by_email(server_context, email):
      """
      Get the user with the provided email. Throws a ValueError if not found.
      :param server_context: A LabKey server context. See utils.create_server_context.
      :param email:
      :return:
      """
      url = server_context.build_url(user_controller, 'getUsers.api')
      payload = dict(includeDeactivatedAccounts=True)
      result = server_context.make_request(url, payload)
  
      if result is None or result['users'] is None:
          raise ValueError("No Users in container" + email)
  
      for user in result['users']:
          if user['email'] == email:
              return user
      else:
          raise ValueError("User not found: " + email)