boundary
boundary copied to clipboard
modify management API of 'groups set-members' to support zero -member option
Is your feature request related to a problem? Please describe. It is currently not easily possible to set the number of members in a group to an empty set since 'group set-member' option requires that at least one -member option is present. However it should be valid that a group is completely empty (at least for transition periods).
Describe the solution you'd like modify the interface of 'groups set-member' to accept that,if no -member option is present and interpret that as an empty member list. Currently the API returns error saying it expects at least a -member count of 1.
Describe alternatives you've considered
- modify the interface of 'groups set-member' to either accept an -clear flag to indicate that the set of members should be empty.
- add a 'groups clear' sub-command option to achieve the same
Explain any additional use-cases
Additional context My current workaround is to do this in two steps
- groups set-members -member u_auth
- groups remove-members -member u_auth not nice, but it works.