Andreas
(Andreas)
January 7, 2021, 3:26pm
1
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 ”,
“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 ”,“type”:3}
Unfortunately, the attribute is not set .
Thank you for the help
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:
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 ”,
“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
Andreas
(Andreas)
January 8, 2021, 8:02am
3
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
MaxM
(Max M.)
January 8, 2021, 10:11pm
4
Hey @Andreas ,
Thank you for reaching out to the Zoom Developer Forum. Looking at the Create a User API it looks like it is not intended to return custom_attributes
:
Please try calling the Get a User API to confirm if custom_attributes
are returned as expected.
Thanks,
Max
system
(system)
Closed
February 8, 2021, 8:11am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.