@@ -33,10 +33,11 @@ class IdentityTypes(Enum):
3333
3434
3535class GroupTypes (Enum ):
36+ # product use is deprecated!
3637 product = 1
37- # group = product # deprecated!
3838 usergroup = 2
3939 productConfiguration = 3
40+ group = 4
4041
4142
4243class RoleTypes (Enum ):
@@ -185,7 +186,7 @@ def add_to_groups(self, groups=None, all_groups=False, group_type=None):
185186 is simply to do an "add to organization Everybody group", so we let that be done.
186187 :param groups: list of group names the user should be added to
187188 :param all_groups: a boolean meaning add to all (don't specify groups or group_type in this case)
188- :param group_type: the type of group (defaults to "product ")
189+ :param group_type: the type of group (defaults to "group ")
189190 :return: the User, so you can do User(...).add_to_groups(...).add_role(...)
190191 """
191192 if all_groups :
@@ -196,7 +197,7 @@ def add_to_groups(self, groups=None, all_groups=False, group_type=None):
196197 if not groups :
197198 groups = []
198199 if not group_type :
199- group_type = GroupTypes .product
200+ group_type = GroupTypes .group
200201 elif group_type in GroupTypes .__members__ :
201202 group_type = GroupTypes [group_type ]
202203 if group_type not in GroupTypes :
@@ -209,7 +210,7 @@ def remove_from_groups(self, groups=None, all_groups=False, group_type=None):
209210 Remove user from some PLC groups, or all of them.
210211 :param groups: list of group names the user should be removed from
211212 :param all_groups: a boolean meaning remove from all (don't specify groups or group_type in this case)
212- :param group_type: the type of group (defaults to "product ")
213+ :param group_type: the type of group (defaults to "group ")
213214 :return: the User, so you can do User(...).remove_from_groups(...).add_role(...)
214215 """
215216 if all_groups :
@@ -220,7 +221,7 @@ def remove_from_groups(self, groups=None, all_groups=False, group_type=None):
220221 if not groups :
221222 raise ArgumentError ("You must specify groups from which to remove the user" )
222223 if not group_type :
223- group_type = GroupTypes .product
224+ group_type = GroupTypes .group
224225 elif group_type in GroupTypes .__members__ :
225226 group_type = GroupTypes [group_type ]
226227 if group_type not in GroupTypes :
0 commit comments