code: func UpdateSignedInUser(c *m.ReqContext, cmd m.UpdateUserCommand) Response {
  	if setting.AuthProxyEnabled {
  		if setting.AuthProxyHeaderProperty == "email" && cmd.Email != c.Email {
  			return Error(400, "Not allowed to change email when auth proxy is using email property", nil)
  		}
  		if setting.AuthProxyHeaderProperty == "username" && cmd.Login != c.Login {
  			return Error(400, "Not allowed to change username when auth proxy is using username property", nil)
  		}
  	}
  	cmd.UserId = c.UserId
  	return handleUpdateUser(cmd)
  }
docs: // POST /api/user