@@ -137,7 +137,7 @@ def __init__(self, session):
137137 self ._session = session
138138
139139 @generator_container
140- def list (self , email = None , displayName = None , max = None ):
140+ def list (self , email = None , displayName = None , orgId = None , max = None ):
141141 """List people
142142
143143 This method supports Cisco Spark's implementation of RFC5988 Web
@@ -154,6 +154,7 @@ def list(self, email=None, displayName=None, max=None):
154154 email(basestring): The e-mail address of the person to be found.
155155 displayName(basestring): The complete or beginning portion of
156156 the displayName to be searched.
157+ orgId(basestring): The organization id.
157158 max(int): Limits the maximum number of people returned from the
158159 Spark service per request.
159160
@@ -169,12 +170,15 @@ def list(self, email=None, displayName=None, max=None):
169170 # Process args
170171 assert email is None or isinstance (email , basestring )
171172 assert displayName is None or isinstance (displayName , basestring )
173+ assert orgId is None or isinstance (orgId , basestring )
172174 assert max is None or isinstance (max , int )
173175 params = {}
174176 if email :
175177 params ['email' ] = email
176178 elif displayName :
177179 params ['displayName' ] = displayName
180+ if orgId :
181+ params ["orgId" ] = orgId
178182 if max :
179183 params ['max' ] = max
180184 # API request - get items
0 commit comments