@@ -255,28 +255,24 @@ def remove_from_products(self, products):
255255 plist = {"productConfiguration" : list (products )}
256256 return self .append (remove = plist )
257257
258- def add_users (self , users = None ):
258+ def add_users (self , users ):
259259 """
260260 Add users (specified by email address) to this user group.
261261 In case of ambiguity (two users with same email address), the non-AdobeID user is preferred.
262262 :param users: list of emails for users to add to the group.
263263 :return: the Group, so you can do Group(...).add_users(...).add_to_products(...)
264264 """
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 )}
268266 return self .append (add = ulist )
269267
270- def remove_users (self , users = None ):
268+ def remove_users (self , users ):
271269 """
272270 Remove users (specified by email address) from this user group.
273271 In case of ambiguity (two users with same email address), the non-AdobeID user is preferred.
274272 :param users: list of emails for users to remove from the group.
275273 :return: the Group, so you can do Group(...).remove_users(...).add_to_products(...)
276274 """
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 )}
280276 return self .append (remove = ulist )
281277
282278 def create (self , option = IfAlreadyExistsOption .ignoreIfAlreadyExists , description = None ):
0 commit comments