When running juju add-user on the CLI, a registration string is generated, but doing the equivalent in libjuju does not.
The registration string is a convenient way to enlist new users because:
it bundles endpoint information
it makes juju register not complain about untrusted CAs
forces the new user to generate a new password, which is unknown to the libjuju process
I would be very convenient if juju.controller.Controller.add_user returned a registration string, or if there was another way to retrieve it.
When running
juju add-user
on the CLI, a registration string is generated, but doing the equivalent in libjuju does not. The registration string is a convenient way to enlist new users because:juju register
not complain about untrusted CAsI would be very convenient if juju.controller.Controller.add_user returned a registration string, or if there was another way to retrieve it.