# Add users whith custom\_attributes

**URL:** <https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949>\
**Category:** API and Webhooks\
**Created:** [January 7, 2021, 3:26pm UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949 "2021-01-07T15:26:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://devforum.zoom.us/u/Andreas)\
**Post date:** [January 7, 2021, 3:26pm UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949/1 "2021-01-07T15:26:25Z")

</div>

Hello,

What is the correct syntax for creating a new user with attributes?  
I have tried the following, unfortunately it does not work:

$post = ‘{  
“action”: “create”,  
“user\_info”: {  
“email”: “[terry@jones.com](mailto:terry@jones.com)”,  
“type”: 3,  
“first\_name”: “Terry”,  
“last\_name”: “Jones”,  
“custom\_attributes”: [  
{  
“key”:“cbf\_xhd0rqm5ieq4rzw”,  
“name”: “Info-test”,  
“value”: “12345”  
}  
]  
}  
}’;

The answer is:

{“[id":“VPfLQFyKZq2f9wQ”,“first\_name”:“Terry”,“last\_name”:“Jones”,“email”:"Terry@Jones.com](mailto:id%22:%22VPfLQFyKZq2f9wQ%22,%22first_name%22:%22Terry%22,%22last_name%22:%22Jones%22,%22email%22:%22Terry@Jones.com)”,“type”:3}

Unfortunately, the attribute is not set .

Thank you for the help

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [January 7, 2021, 3:27pm UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949/2 "2021-01-07T15:27:31Z")

</div>

Hey @Andreas

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout this related thread that may have the answer you are looking for:

> [@Create users whith custom\_attributes](https://devforum.zoom.us/t/-/35508):
>
> I need to create users with custom attributes that have already been created in user interface. In other words, in addition to the basic fields that the documentation shows, I can create them with my own additional fields. How could you do it? { “action”: “create”, “user\_info”:{ “first\_name”: “PABLO”, “last\_name”: “ANDRES”, “email”: “[pablovaldes@email.com](mailto:pablovaldes@email.com)”, “type”: 1, “password”: “pass2020” } } what is required { “action”: “create”, “user\_info”:{ “first\_name”: “PABLO”, “last\_nam…

If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://devforum.zoom.us/u/Andreas)\
**Post date:** [January 8, 2021, 8:02am UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949/3 "2021-01-08T08:02:30Z")

</div>

Hello DeveloperBot,  
unfortunately your answer does not fit. The attribute is present in my account. I can set it manually via the management. Only via the API it does not work.

Thanks,  
Andreas

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 8, 2021, 10:11pm UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949/4 "2021-01-08T22:11:07Z")

</div>

Hey @Andreas,

Thank you for reaching out to the Zoom Developer Forum. Looking at the [Create a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate) it looks like it is not intended to return `custom_attributes`:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/3/83028c718004e46fbb8f8804a0257d6565bf726c.png)

Please try calling the [Get a User API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) to confirm if `custom_attributes` are returned as expected.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 8, 2021, 8:11am UTC](https://devforum.zoom.us/t/add-users-whith-custom-attributes/39949/5 "2021-02-08T08:11:21Z")

</div>

Closed on February 8, 2021, 8:11am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
