Skip to content

Groups.populate_users() doesn't return more than 100 records #141

@cmtoomey

Description

@cmtoomey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions