def PrintDomainUsers(self, apps_domain, max_results=None, max_page=500):
    """Powerful demonstration of ease of user provisioning API.

    If the customer is interested in multiple domains, this might
    be rewritten to use customer=customer_id instead of domain=xxx.

    Args:
      apps_domain: Users apps domain e.g. mybiz.com.
      max_results: If not None, stop after this many users.
      max_page: Used to optimize paging (1-500).
    """
    print 'Users from domain %s:' % apps_domain
    self._PrintUserHeader()
    _, count = self._ProcessDomainUsers(apps_domain=apps_domain,
                                        process_fn=self._PrintOneUser,
                                        max_results=max_results,
                                        max_page=max_page)
    print '%d users found.' % count
dataset/ETHPy150Open google/gfw-toolkit/toolkit/admin_sdk_directory_api/users_api.py/UsersApiWrapper.PrintDomainUsers/original