@tommy
The behavior has changed- possibly linked to an API update in the last few days? Now I cannot call addRegistrant on any email address that is not affiliated with my account (and that does not share the same domain), which completely breaks what I was working on. Here is a sample request/shell script that up until recently worked with email addresses not affiliated with my account(the script takes meeting ID ($1) as a command line parameter). The email address used below is a real email address I created just for this test
curl -XPOST “https://api.zoom.us/v2/meetings/$1/registrants” -H “Authorization: Bearer $access_token” -H “Content-Type: application/json” -d ‘{“email":"sebortiz1@outlook.com”,“first_name”: joe",“last_name”:“exotic”}’
It is now returning
{
“code”: 1001,
“message”: “User does not exist: sebortiz1@outlook.com.”
}
If I call the same curl request with the email address of a user affiliated with my pro account (added as a licensed user) then the request succeeds.
Here is how the meeting was created- I am requiring that users are signed into zoom, but that should not, and until recently did not, cause this problem:
curl -XPOST “https://api.zoom.us/v2/users/$user/meetings” -d ‘{“topic”:“My meeting”,“start_time”:“2021-05-31T07:00:00Z”, “type”:2,“settings”: {“approval_type”:1,“registration_type”:1,“join_before_host”:true,“waiting_room”:false,“close_registration”:false,“meeting_authentication”:true,“registrants_email_notification”:false}, “recurrence”:{“type”:1}}’ -H “Authorization: Bearer $access_token” -H “Content-Type: application/json”
This is utterly puzzling- did some more experimentation- I do not have anything enabled restricting domains(I confirmed this by doing a GET for the meeting which shows that authentication_domain is blank). I also visually confirmed in the zoom UI that the authentication option is set to “sign into zoom”, not “sign into zoom with specific domains”. If I try to add a registrant which is not part of my account but whose domain matches the domain name of my account owner that works. For example if my zoom account owner is owner@blah.com, I can add admin@blah.com or zoom@blah.com(matching blah.com domain), but I cannot add the equally valid user sebortiz1@outlook.com. I also tried creating a hotmail account dritogether@hotmail.com- which also does not work with addregistrant.
Also- for the email addresses I cannot add/register via the API, I can still add them in a browser by going to the registration URL and then I can programmatically approve them via the UI.