firebase_admin/_user_mgt.py
def list_users(self, page_token=None, max_results=MAX_LIST_USERS_RESULTS):
        """Retrieves a batch of users."""
        if page_token is not None:
            if not isinstance(page_token, str) or not page_token:
                raise ValueError('Page token must be a non-empty string.')
        if not isinstance(max_results, int):
            raise ValueError('Max results must be an integer.')
        if max_results < 1 or max_results > MAX_LIST_USERS_RESULTS:
            raise ValueError(
                'Max results must be a positive integer less than '
                '{0}.'.format(MAX_LIST_USERS_RESULTS))

        payload = {'maxResults': max_results}
        if page_token:
            payload['nextPageToken'] = page_token
        try:
            return self._client.body('get', '/accounts:batchGet', params=payload)
        except requests.exceptions.RequestException as error:
            raise _auth_utils.handle_auth_backend_error(error)
Retrieves a batch of users.
Retrieves a batch of users.
Retrieves a batch of users .
def list_users(self, page_token=None, max_results=MAX_LIST_USERS_RESULTS):
        if page_token is not None:
            if not isinstance(page_token, str) or not page_token:
                raise ValueError('Page token must be a non-empty string.')
        if not isinstance(max_results, int):
            raise ValueError('Max results must be an integer.')
        if max_results < 1 or max_results > MAX_LIST_USERS_RESULTS:
            raise ValueError(
                'Max results must be a positive integer less than '
                '{0}.'.format(MAX_LIST_USERS_RESULTS))
        payload = {'maxResults': max_results}
        if page_token:
            payload['nextPageToken'] = page_token
        try:
            return self._client.body('get', '/accounts:batchGet', params=payload)
        except requests.exceptions.RequestException as error:
            raise _auth_utils.handle_auth_backend_error(error)
def list_users ( self , page_token = None , max_results = MAX_LIST_USERS_RESULTS ) : if page_token is not None : if not isinstance ( page_token , str ) or not page_token : raise ValueError ( 'Page token must be a non-empty string.' ) if not isinstance ( max_results , int ) : raise ValueError ( 'Max results must be an integer.' ) if max_results < 1 or max_results > MAX_LIST_USERS_RESULTS : raise ValueError ( 'Max results must be a positive integer less than ' '{0}.' . format ( MAX_LIST_USERS_RESULTS ) ) payload = { 'maxResults' : max_results } if page_token : payload [ 'nextPageToken' ] = page_token try : return self . _client . body ( 'get' , '/accounts:batchGet' , params = payload ) except requests . exceptions . RequestException as error : raise _auth_utils . handle_auth_backend_error ( error )
Retrieves a batch of users.
Retrieves a batch of users .
"""Retrieves a batch of users."""
self
page_token
max_results