@@ -137,7 +137,7 @@ def __init__(self, session):
137
137
self ._session = session
138
138
139
139
@generator_container
140
- def list (self , email = None , displayName = None , max = None ):
140
+ def list (self , email = None , displayName = None , orgId = None , max = None ):
141
141
"""List people
142
142
143
143
This method supports Cisco Spark's implementation of RFC5988 Web
@@ -154,6 +154,7 @@ def list(self, email=None, displayName=None, max=None):
154
154
email(basestring): The e-mail address of the person to be found.
155
155
displayName(basestring): The complete or beginning portion of
156
156
the displayName to be searched.
157
+ orgId(basestring): The organization id.
157
158
max(int): Limits the maximum number of people returned from the
158
159
Spark service per request.
159
160
@@ -169,12 +170,15 @@ def list(self, email=None, displayName=None, max=None):
169
170
# Process args
170
171
assert email is None or isinstance (email , basestring )
171
172
assert displayName is None or isinstance (displayName , basestring )
173
+ assert orgId is None or isinstance (orgId , basestring )
172
174
assert max is None or isinstance (max , int )
173
175
params = {}
174
176
if email :
175
177
params ['email' ] = email
176
178
elif displayName :
177
179
params ['displayName' ] = displayName
180
+ if orgId :
181
+ params ["orgId" ] = orgId
178
182
if max :
179
183
params ['max' ] = max
180
184
# API request - get items
0 commit comments