Client provides methods that the Juju client command uses to interact with users stored in the Juju Server.
NewClient creates a new `Client` based on an existing authenticated API connection.
AddUser creates a new local user in the controller, sharing with that user any specified models.
DisableUser disables a user. If the user is already disabled, the action is considered a success.
EnableUser enables a users. If the user is already enabled, the action is considered a success.
RemoveUser deletes a user. That is it permanently removes the user, while retaining the record of the user to maintain provenance.
ResetPassword resets password for the specified user.
SetPassword changes the password for the specified user.
UserInfo returns information about the specified users. If no users are specified, the call should return all users. If includeDisabled is set to ActiveUsers, only enabled users are returned.
IncludeDisabled is a type alias to avoid bare true/false values in calls to the client method.
var ( // ActiveUsers indicates to only return active users. ActiveUsers IncludeDisabled = false // AllUsers indicates that both enabled and disabled users should be // returned. AllUsers IncludeDisabled = true )