|
def get_group_members(self, group_name='confluence-users', start=0, limit=1000, expand=None): |
Caused an issue in my case because some users where left out (only 200 users where returned).
to avoid this in future and to be independent from those system settings I did this:
current_index = 0
limit = 50
usernames = []
while 1:
query_results = self.confluence.get_group_members(group_name=groupname,
start=current_index,
limit=limit)
for u in query_results:
usernames.append(u["username"])
if len(query_results) < limit:
break
current_index += len(query_results)
return usernames```
Thanks for all your work. I really appreciate it!
atlassian-python-api/atlassian/confluence.py
Line 1386 in 8299ade
Caused an issue in my case because some users where left out (only 200 users where returned).
to avoid this in future and to be independent from those system settings I did this: