@@ -255,28 +255,24 @@ def remove_from_products(self, products):
255
255
plist = {"productConfiguration" : list (products )}
256
256
return self .append (remove = plist )
257
257
258
- def add_users (self , users = None ):
258
+ def add_users (self , users ):
259
259
"""
260
260
Add users (specified by email address) to this user group.
261
261
In case of ambiguity (two users with same email address), the non-AdobeID user is preferred.
262
262
:param users: list of emails for users to add to the group.
263
263
:return: the Group, so you can do Group(...).add_users(...).add_to_products(...)
264
264
"""
265
- if not users :
266
- raise ArgumentError ("You must specify emails for users to add to the user group" )
267
- ulist = {"user" : [user for user in users ]}
265
+ ulist = {"user" : list (users )}
268
266
return self .append (add = ulist )
269
267
270
- def remove_users (self , users = None ):
268
+ def remove_users (self , users ):
271
269
"""
272
270
Remove users (specified by email address) from this user group.
273
271
In case of ambiguity (two users with same email address), the non-AdobeID user is preferred.
274
272
:param users: list of emails for users to remove from the group.
275
273
:return: the Group, so you can do Group(...).remove_users(...).add_to_products(...)
276
274
"""
277
- if not users :
278
- raise ArgumentError ("You must specify emails for users to remove from the user group" )
279
- ulist = {"user" : [user for user in users ]}
275
+ ulist = {"user" : list (users )}
280
276
return self .append (remove = ulist )
281
277
282
278
def create (self , option = IfAlreadyExistsOption .ignoreIfAlreadyExists , description = None ):
0 commit comments