question

shaun-mclean avatar image
shaun-mclean asked ·

How can I specify a user as host for a meeting when authenticated with the admin account in an API

I have an App in production with permission Meetings and can successfully create a Meeting with the API for the admin account. I want to be able via my script to authenticate on the admin account and then pass through the details for a user in the account so the meeting is created with the user as host. I tried using the number I see for each user in the Admin Portal url but that is not working.

How do I get a valid host id for each user and pass it via the API Create Meeting?

apimeetingshost
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

Can you try to read the user's extension id then create a meeting with that extension id

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/[extensionId]/meeting
4 comments Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

So do I have to make a different App for every user? That seems odd. When I authenticate to the App it is with the admin credentials - when attempting to create a meeting for another user if I set host id to what I believe is the correct internal extension id I get a "errorCode":"MET-106"

"message":"Cannot create meeting. Reason : [Provider internal error]" error and if I set both extension id and host id with the internal user id I get "errorCode":"CMN-101"

"message":"Parameter [extensionId] value is invalid"

Perhaps I'm using the incorrect extension Id but how do I get extension IDs for users unless my App has the ReadAccounts permission? Do I need to create a whole other App with ReadAccounts, get it approved to Production just so I can get the correct IDs. Perhaps I'm missing the obvious here but I'm having trouble finding much documentation on this. Appreciate your help on this @Phong Vu

0 Likes 0 · ·

I tested myself and it works well. I just modified my answer to show better the [accountId], which you don't need to specify but can use the tilde ~.

I have working code in Node JS. Let me know if you want the code. It is simple though.

0 Likes 0 · ·

Unfortunately I can't even get this to work in the API Reference interface that RC offers at https://developers.ringcentral.com/api-reference/Meeting-Management/createMeeting
Not sure what's wrong but I've submitted a ticket and hope it gets resolved

0 Likes 0 · ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.