Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,18 +885,20 @@ def get_all_groups(self, start=0, limit=1000):

return (self.get(url) or {}).get('results')

def get_group_members(self, group_name='confluence-users', start=0, limit=1000):
def get_group_members(self, group_name='confluence-users', start=0, limit=1000, expand=None):
"""
Get a paginated collection of users in the given group
:param group_name
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
:param limit: OPTIONAL: The limit of the number of users to return, this may be restricted by
fixed system limits. Default: 1000
:param expand: OPTIONAL: A comma separated list of properties to expand on the content. status
:return:
"""
url = 'rest/api/group/{group_name}/member?limit={limit}&start={start}'.format(group_name=group_name,
url = 'rest/api/group/{group_name}/member?limit={limit}&start={start}&expand={expand}'.format(group_name=group_name,
limit=limit,
start=start)
start=start,
expand=expand)
return (self.get(url) or {}).get('results')

def get_space(self, space_key, expand='description.plain,homepage'):
Expand Down