2022.4 added new style groups for many entity types, and they work great and can be created from the UI. Unfortunately, the old group service calls don’t work, so the new style groups cannot be updated dynamically.
duplicate of Why is there no service call to set domain specific groups
Please vote on that one instead.