rocketchat-node icon indicating copy to clipboard operation
rocketchat-node copied to clipboard

Error creating a user RequestError: Invalid JSON for Custom Fields [error-invalid-customfield-json]

Open msouidi309 opened this issue 6 years ago • 1 comments

Hi, i'm trying to create a user and set a custom field, like the twitter account or something like that but it doesn't seems to work. Any problem in my json ? Here is my variable :

var userToAdd = { "name": "myName", "email": "myEmail", "password": "myPassword", "username": "myUsername", "sendWelcomeEmail": false, "joinDefaultChannels": false, "verified":false, "requirePasswordChange":false, "roles":["user"], "customFields": { "twitter": "@myTwitter" } }

msouidi309 avatar Apr 27 '18 12:04 msouidi309

Facing the same issue. Has anyone found a solution for this?

MSushruth avatar Jul 17 '19 12:07 MSushruth