Skip to content

Not returning all users? #249

Description

@ennwise

I'm calling the library using code similar to:

		const config = {
			query: `CN=*`,
		  	includeMembership: ['user'],
		  	includeDeleted: false
		};

		this.ad.find(config, (err, results) => { 
                     	let compiled = [];
			if (membership.indexOf('user') > -1) {
				compiled = compiled.concat(results.users);
			}
                           resolve(api.processResults(opts, compiled));
                    });

Results contains 1000 items, 51 of which are the users I'm interested in. I was expecting that the library would handle the request and return more than 1000 items and thus the resulting list would have all of the users in the directory rather than just the 51 that get returned.

I know there is a 1000 item query limit in AD, and I was expecting the library managed this for me and would return all results - how do I get the full result set?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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