Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Can't do pagination #85

@yogiGueta

Description

@yogiGueta

Hi,
I am trying to do some pagination without a success. I read a lot of posts, but I can't find a concrete answer.
My scenario is very simple:
I have AD with 2000 users, I want use findUsers() function and get only 200 users at a time,
so I configured:
General AD config:
activeDirectoryConfig.paged = true;
Opt config:
opts.paging = {
pageSize: 200,
};

Now I am getting the first 200 users (1-200), but how can I get the next 200 users (201-400)? What is the correct way to tell findUsers() to give me the next page (to start the fetching from offset 201 and not 0)?
Thanks,
BTW I am using activedirectory2@2.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions