def add_to_products(self, products=None, all_products=False):
if all_products:<EOL><INDENT>if products:<EOL><INDENT>raise ArgumentError("<STR_LIT>")<EOL><DEDENT>plist = "<STR_LIT:all>"<EOL><DEDENT>else:<EOL><INDENT>if not products:<EOL><INDENT>raise ArgumentError("<STR_LIT>")<EOL><DEDENT>plist = {GroupTypes.productConfiguration.name: [product for product in products]}<EOL><DEDENT>return self.append(add=plist)<EOL>
Add user group to some product license configuration groups (PLCs), or all of them.
:param products: list of product names the user should be added to
:param all_products: a boolean meaning add to all (don't specify products in this case)
:return: the Group, so you can do Group(...).add_to_products(...).add_users(...)