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

getLicenseAssignments pageToken returns null value #193

Open
joef12345 opened this issue Mar 30, 2021 · 0 comments
Open

getLicenseAssignments pageToken returns null value #193

joef12345 opened this issue Mar 30, 2021 · 0 comments

Comments

@joef12345
Copy link

joef12345 commented Mar 30, 2021

Expected Behavior

getLicenseAssignments should return all the users in the specified domain. PageToken should be populated to allow calling more than 500 results.

url: https://github.com/googleworkspace/apps-script-samples/blob/master/advanced/adminSDK.gs

Actual Behavior

getLicenseAssignments only returns the first page and the PageToken value is null. Also, the while(pageToken) is on the wrong line. It is currently on line 212 and should be on line 220.

Steps to Reproduce the Problem

  1. Call getLicenseAssignments and request 500 as the max result. Assuming there are more than 500 users, you should get a list of 500 users.
  2. Change maxResults to 1 and you should only get one result and pagetoken is null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant