# Optional name for user create/register

**URL:** <https://forums.rocket.chat/t/optional-name-for-user-create-register/9705>\
**Category:** Community Support\
**Created:** [December 14, 2020, 4:40pm UTC](https://forums.rocket.chat/t/optional-name-for-user-create-register/9705 "2020-12-14T16:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adude946](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@adude946](https://forums.rocket.chat/u/adude946)\
**Post date:** [December 14, 2020, 4:40pm UTC](https://forums.rocket.chat/t/optional-name-for-user-create-register/9705/1 "2020-12-14T16:40:23Z")

</div>

### 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](mailto:roger0@example.com)”, “password”: “password”}’  
> {“success”:false,“error”:“Match error: Missing key ‘name’”}

> /api/v1/users.register -d ‘{ “username”: “rogersmith9”, “email”: “[roger9@example.com](mailto: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
