File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,23 @@ def check_reindexing_status(self):
91
91
url = self .resource_url ("status" , api_root = "rest/indexing" , api_version = "latest" )
92
92
return self .get (url )
93
93
94
- def get_users (self , user_filter = None ):
94
+ def get_users (self , user_filter = None , limit = 25 , start = 0 ):
95
95
"""
96
96
Get list of bitbucket users.
97
- Use 'user_filter' for get specific users.
98
- :user_filter: str
97
+ Use 'user_filter' for get specific users or get all users if necessary.
98
+ :param user_filter: str - username, displayname or email
99
+ :param limit: int - paginated limit to retrieve
100
+ :param start: int - paginated point to start retreiving
101
+ :return: The collection as JSON with all relevant information about the licensed user
99
102
"""
100
103
url = self .resource_url ("users" , api_version = "1.0" )
101
104
params = {}
102
105
if user_filter :
103
106
params ["filter" ] = user_filter
107
+ if limit :
108
+ params ["limit" ] = limit
109
+ if start :
110
+ params ["start" ] = start
104
111
return self .get (url , params = params )
105
112
106
113
def get_users_info (self , user_filter = None , start = 0 , limit = 25 ):
You can’t perform that action at this time.
0 commit comments