34
37
// AddUser creates a new local user in the controller, sharing with that user any specified models.
35
38
func (c *Client) AddUser(
36
username, displayName, password string, modelUUIDs ...string,
39
username, displayName, password, access string, modelUUIDs ...string,
37
40
) (_ names.UserTag, secretKey []byte, _ error) {
38
41
if !names.IsValidUser(username) {
39
42
return names.UserTag{}, nil, fmt.Errorf("invalid user name %q", username)