users/extended?base_role_ids and user?roles= returning different results

e5f6617ccb21f88e3514ef4e9cdc2bea-huge-ba
c69ac7e38ce2c409c70c1de336533863-huge-ro

I was using the get users endpoint for one of our partner school. We were notified that their List of Staff had missing records. On further investigation, we found that the users?roles={role_id} method that we were using returns only 29 records. While the users/extended?base_role_ids={base_ role _id} was returning 31 records hence the missing staff. Both of these IDs were unique to the "Teacher" role and should technically return the same results based on the documentation but that is not the case.

I have attached a screenshot of the get users response using both endpoint. The roleid and base_role_id is unique to the role I was looking to get so they should technically return the same number of records.

We cannot use users/extended?base_role_ids= because in some cases base_role_ids are not unique so we will not be able to load Users of specific roles with accuracy which is extremely important for our customers. We would like to depend on using the role_id which is unique to each role but we are not able to receive all users using that method.

Categories