Azure Developer – Get the list of conference rooms using Microsoft Graph API programmatically

This post has been republished via RSS; it originally appeared at: MSDN Blogs.

In this post we will see how to get the list of conference rooms or in other words, how to get all the meeting rooms in the user's tenant or in a specific room list programmatically. We can use Microsoft Graph API’s findRooms API call to do this.

Lets we play with a simple request to get all the rooms in the given user’s tenant,

Request

GET https://graph.microsoft.com/beta/me/findRooms

Response

{
     "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.emailAddress)",
     "value": [
         {
             "name": "Conf Room Adams",
             "address": "Adams@M365x214355.onmicrosoft.com"
         },
         {
             "name": "Conf Room Baker",
             "address": "Baker@M365x214355.onmicrosoft.com"
         },
         {
             "name": "Conf Room Crystal",
             "address": "Crystal@M365x214355.onmicrosoft.com"
         },
         {
             "name": "Conf Room Hood",
             "address": "Hood@M365x214355.onmicrosoft.com"
         },
         {
             "name": "Conf Room Rainier",
             "address": "Rainier@M365x214355.onmicrosoft.com"
         },
         {
             "name": "Conf Room Stevens",
             "address": "Stevens@M365x214355.onmicrosoft.com"
         }
     ]
}

Please note,

  • the APIs under the /beta version in Microsoft Graph are subject to change.
  • Use of these APIs in production applications is not supported.

Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.