I agree with Stuart that the right solution is to have a unique userid.
One other point that exacerbates the issue is that there is no way ahead of time to discover if a user is in this inactive state. My expectation was that sincethe '--all' flag exists it should show the inactive users:
$ juju users --all
Controller: local
Name Display name Access Date created Last connection
admin* admin superuser 2017-01-19 just now
$ juju add-user test-user
ERROR failed to create user: user already exists
I agree with Stuart that the right solution is to have a unique userid.
One other point that exacerbates the issue is that there is no way ahead of time to discover if a user is in this inactive state. My expectation was that sincethe '--all' flag exists it should show the inactive users:
$ juju users --all
Controller: local
Name Display name Access Date created Last connection
admin* admin superuser 2017-01-19 just now
$ juju add-user test-user
ERROR failed to create user: user already exists