-
Notifications
You must be signed in to change notification settings - Fork 446
Closed
Labels
Description
I'm trying to get a list of usernames in a large group (117 people), but populate_users only returns 100 items. The function doesn't take an upper bound page size, so it sticks with 100
#Get list of Tableau_Publishers
group_list = server.groups.get()
group_num = range(len(group_list[0]))
#Find Tableau_Publisher Group ID
for i in group_num:
if group_list[0][i].name == 'Tableau_Publishers':
publisher_id = group_list[0][i]
print server.groups.populate_users(publisher_id)
print len(group_list[0][i].users)
Populate_users appears to obey the default REST API request pagination, but doesn't accept a setting to bump the page size, and there is no documentation on the Groups endpoint at all.
Default should either be higher than 100, or accept input on max size.
Reactions are currently unavailable