Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@cmtoomey

Description

@cmtoomey
Issue body actions

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

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.