Skip to content

Commit 6944efd

Browse files
misilotgonchik
authored andcommitted
Add Ability to expand status for membership list (#391)
Issue #390
1 parent 34e5d8d commit 6944efd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

atlassian/confluence.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -885,18 +885,20 @@ def get_all_groups(self, start=0, limit=1000):
885885

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

888-
def get_group_members(self, group_name='confluence-users', start=0, limit=1000):
888+
def get_group_members(self, group_name='confluence-users', start=0, limit=1000, expand=None):
889889
"""
890890
Get a paginated collection of users in the given group
891891
:param group_name
892892
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
893893
:param limit: OPTIONAL: The limit of the number of users to return, this may be restricted by
894894
fixed system limits. Default: 1000
895+
:param expand: OPTIONAL: A comma separated list of properties to expand on the content. status
895896
:return:
896897
"""
897-
url = 'rest/api/group/{group_name}/member?limit={limit}&start={start}'.format(group_name=group_name,
898+
url = 'rest/api/group/{group_name}/member?limit={limit}&start={start}&expand={expand}'.format(group_name=group_name,
898899
limit=limit,
899-
start=start)
900+
start=start,
901+
expand=expand)
900902
return (self.get(url) or {}).get('results')
901903

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

0 commit comments

Comments
 (0)