Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for paginated results when retrieving users for an organization #1

Open
verschoren opened this issue Mar 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@verschoren
Copy link
Owner

Update the following to account for paginated results:

let options = {
contentType: "application/json",
url: `/api/v2/organizations/${organization_id}/users`,
type: "GET",
};
client.request(options).then((data) => {

The result is in a next_page variable in thedata element

@verschoren verschoren added the enhancement New feature or request label Mar 20, 2023
@verschoren verschoren changed the title Account for paginated results in organizations Account for paginated results when searching for users Mar 20, 2023
@verschoren verschoren changed the title Account for paginated results when searching for users Account for paginated results when retrieving users for an organization Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant