I tried to get the list of users from API but I got some duplicates and some users are missing.
I tried the following code in Python. Is there anything wrong with this code?
import ssaw
import pandas as pd
from ssaw import UsersApiclient = ssaw.Client(‘https://mydomain.com’,‘admin_username’,‘password’, workspace = ‘primary’)
users = [user.dict for user in UsersApi(client).get_list()]
df = pd.DataFrame(users)
df
However, the number of users from this code is exactly the same as the number of users I have in the survey solutions; the only issue is that some users are duplicated, while others are missing.