Optional name for user create/register

Description

I disabled “Require Name For Signup” from UI, but when I create or register a user from API it errors out asking for name. Which API method is this UI field referencing? Or how to make the name optional in both the user create/register APIs?

server.js:204 API ➔ debug Success { statusCode: 200, body: { message: ‘{“msg”:“result”,“id”:“20”,“result”:{“update”:[{"_id":“Accounts_RequireNameForSignUp”,"_updatedAt":{"$date":1607960925072},“autocomplete”:true,“blocked”:false,“createdAt”:{"$date":1607850070056},“enterprise”:false,“group”:“Accounts”,“hidden”:false,“i18nDescription”:“Accounts_RequireNameForSignUp_Description”,“i18nLabel”:“Accounts_RequireNameForSignUp”,“packageValue”:true,“public”:true,“requiredOnWizard”:false,“secret”:false,“section”:“Registration”,“sorter”:31,“ts”:{"$date":1607943593288},“type”:“boolean”,“value”:false,“valueSource”:“processEnvValue”,“processEnvValue”:false}],“remove”:}}’, success: true } }

/api/v1/users.create -d ‘{ “username”: “rogersmith0”, “email”: “roger0@example.com”, “password”: “password”}’
{“success”:false,“error”:“Match error: Missing key ‘name’”}

/api/v1/users.register -d ‘{ “username”: “rogersmith9”, “email”: “roger9@example.com”, “pass”: “password”}’
{“success”:false,“error”:“Match error: Missing key ‘name’”}

Server Setup Information

  • Version of Rocket.Chat Server: 3.9.1
  • Operating System: linux
  • NodeJS Version: 12.18.4
  • MongoDB Version: 4.0.21