Fixes #6879 - External user groups CLI

Not finished, depends on https://github.com/theforeman/foreman/pull/1640