Open jburel opened 4 years ago
@jburel: you mean omero user add omename firstname lastname groupname
? I'd suggest maybe only if --ignore-existing
is passed because then there wouldn't be an error condition anyway.
I wrote error. I meant "die"
I still think it is more useful to do a joingroup
than terminate
regardless of the option
I think that would be a surprise. I try to add a user "john" with password "foo" and the method is successful, but new John won't be able to log in and old John will now be in a new group.
True
How about a better error message? Instead of
User exists: user-10 (id=NNNM)
Something like
User <username> exists but isn't in the requested group, run "user joingroup ... <...>" to add them to the group
?
If accepted then could revert https://github.com/ome/openmicroscopy/pull/6217.
If we only change the message then the change won't be reverted
if we do a joingroup
when --ignore-existing
is passed then we can revert
If the user exists and groups are specified. The default should be to join the group. Instead of throwing an error or returning without any actions. This makes the setup of tests for example more complicated that it has to be.