AnsweredAssumed Answered

Duplicate user in paged API calls

Question asked by Mike Dean on Apr 26, 2017
Latest reply on May 5, 2017 by Mike Dean

We make use of the Canvas API to list all users. I use the link HTTP header to run through the list of pages to call. I have had a problem with the following GET requests:[]=email&page=39&per_page=100[]=email&page=40&per_page=100


The same user appears at the end of page 39 and then at the start of page 40.

The user details are the same (I have obfuscated the example due to it being student details):

   "id": 5041,
   "name": "[NAME]",
   "sortable_name": "[NAME]",
   "short_name": "[NAME]",
   "sis_user_id": "[GUID]",
   "integration_id": "[STUDENT_ID]",
   "sis_login_id": "[STUDENT_ID]",
   "sis_import_id": null,
   "login_id": "[STUDENT_ID]",
   "email": "[EMAIL ADDRESS]"



Has anyone else seen this happening? I add the users into a C# Dictionary by the login details, which of course is causing a problem if the user has already been output once.