Office 365 REST API list resources (meeting rooms)
Asked Answered
U

1

10

I have a question about Office365 REST API. Is there a way to obtain list of resources - meeting room calendars.

I can only get meetings that will take place in room if I know meeting room username.

https://outlook.office365.com/api/v1.0/users/[email protected]/calendars

Can I list all meeting rooms and obtain their calendars?

Ureter answered 14/4, 2015 at 13:0 Comment(0)
H
4

You can use the Azure AD Graph API to query the list of users. However, there is no field in the API that marks a user as being a conference room. Depending on how your organization creates and names rooms, maybe you can find a filter that will only return rooms.

After that, it's just a matter of implementing the client credential flow so you can access multiple mailboxes.

Honor answered 14/4, 2015 at 14:19 Comment(9)
Thanks for the help. I love your blog post and Django sample app.It really helps understand the whole process. One more question. Do you maybe know any python examples for implementation of Client Credentials Grant Flow using X509 keys?Ureter
I think I found your repo that does just that: github.com/jasonjoh/python_clientcred :)Ureter
Yep, that will hopefully help :).Honor
@JasonJohnston Any plans to add such a flag to distinguish between "real" users and resources? Basing on lack of first or surname is a bit tricky...Broadax
@GaSacchi Simply get events for this "user", using resource email address.Broadax
@GaSacchi I'm using Graph APIBroadax
@KrzysztofWolny Graph API should have the same limitations as Outlook API. Are you using a service app?Econometrics
@GaSacchi yes, service app.Broadax
The Hyperlink in the answer is not working anymore, google search did not bring up any new locations. Any chance someone still has a copy of the text? Looking for exactly this!Miscegenation

© 2022 - 2024 — McMap. All rights reserved.