'Get a list of user Resources that match the specified search string.
:param user: a string to match usernames, name or email against.
:param startAt: index of the first user to return.
:param maxResults: maximum number of users to return.
If maxResults evaluates as False, it will try to get all items in batches.
:param includeActive: If true, then active users are included in the results.
:param includeInactive: If true, then inactive users are included in the results.'

def search_users(self, user, startAt=0, maxResults=50, includeActive=True, includeInactive=False):

    params = {u'username': user, u'includeActive': includeActive, u'includeInactive': includeInactive}
    return self._fetch_pages(User, None, u'user/search', startAt, maxResults, params)
