How to get the meeting room resources through MS Graph API? - microsoft-graph-api

I have been fiddling with the Microsoft Graph API for sometime now in the context of finding a meeting room.
While I could retrieve the list of meeting rooms using the following api call
/v1.0/me/people?$filter=personType%2fsubclass+eq+%27Room%27
I wonder if I could fetch the attributes associated with the meeting rooms (like meeting room capacity , projector available etc.,) which have been custom added when creating a meeting room.

The /people method isn't a reliable source for rooms , but there is a /beta endpoint for findRooms and findRoomLists.
That said, it unfortunately isn't possible to retrieve the extended resource properties such as msExchResourceCapacity, msExchResourceDisplay or `msExchResourceMetaData. I recommend visiting the UserVoice and adding this as a feature suggestion.

Related

Retrieve contact list name and members via Graph API

I'm trying to retrieve "contact lists" (distribution lists) from a Microsoft 365 account using the Graph API and direct http calls. Right now I use this URL:
https://graph.microsoft.com/v1.0/users/{userid}/contactfolders/{folderid}/contacts?$top=500&$count=true
This does retrieve the various contacts I have, but not the names of any contact lists or their members. The "count" of items that is retrieved does include those contact lists but not their actual data.
I have tried the "people" and "groups" endpoints but those retrieve different information, not what I am looking for.
I know I can use EWS for this purpose, and I have, but I'm trying to convert my existing application to 100% Graph. I would appreciate any information, thanks.
I've sent a user voice requesting for this feature: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/fetch-contact-group-using-graph-api/idi-p/3262621
Do support if you think there's no feature currently available in Graph API to fetch contact list!

Microsoft graph filter calendar entries with a category

I'm trying to find how I can use the microsoft graph api filters to get the entries in a calendar, but only those that have a category specified. Is this possible?
As of now this is not possible, there is a way to filter categories in a simple way like below which has 'Red category' in an event in a calendar and you can get it.
https://graph.microsoft.com/v1.0/me/calendar/events?$filter=categories/any(x:x eq 'Red category')
As a work around you need to pull all the events and then check for empty array in all events by writing the code on your end and get the required ones.
You can also create a feature request for this kind of scenario by going to Microsoft Graph Feedback Forum so that in future the Microsoft Graph Product team may implement it.

Is there any way to get the list of joined teams details of members?

Is there any way to get the list of joined teams details of members except graph API? Using graph API of below link we can get the list of joined teams details of any members. Similarly, is there any other way to get the list of joined MS teams group details? I want to use these details in Microsoft bot framework.
https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=csharp
Due to some security concern I can not use graph API as of now.
I am also exploring below link but I am not getting anything here... Looking for any REST API like graph API where I can provide the users name and I can get details.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=dotnet
It's not a security concern, rather it's part of the requirement. If i am in your place, i would set Graph API as prerequisite for my app to work, explain the benefits that you're going to get with Graph/application permissions. Apart from Microsoft Graph API you can try with Powershell, CLI.

How to get free and busy rooms details in microsoft graph API for particular time period?

Is there any microsoft office graph API available where I can get available and busy meeting room details.
My requirement is that I will pass some start date time and end date time and expect all the available and busy room list.
As for as I know we can add room outlook portal admin section.
I have gone through below findRoomLists and findrooms API they are just giving rooms information not there status busy/free.
I want status also Is there any functionality available in graph API.
https://graph.microsoft.com/beta/me/findRoomLists
https://graph.microsoft.com/beta/me/findRooms
Have gone through below link but no help.
How to display a list of available meeting rooms at present using Microsoft Graph API
Can't get all busy times of meeting rooms using the Office365 Calendar API
Thanks
Ajay Tiwari
After searching a lot I found Microsoft has an API to do this thing. See https://learn.microsoft.com/en-us/graph/api/calendar-getschedule?view=graph-rest-beta
Description says
Get the free/busy availability information for a collection of users, distributions lists, or resources, for a specified time period.
There's one catch though, it is in beta you have to be careful to use it in production. But for now it is working great.

Searching all users' emails in office 365 for items sent to certain people

When someone views contact details in our CRM, I would like to pull in a summary of recent correspondence.
I can search one user easily enough:
https://graph.microsoft.com/v1.0/users/jo#example.com/messages?$search="bob#example.com"&$select=from,sender,toRecipients,subject
But you have to cross reference every user with every contact is a lot of requests.
Is it possible to search the Microsoft Graph for all emails sent from/to an address from/to all users?
If not, is there any other API / Tech out there that could get me the information.
It isn't possible to search across mailboxes from Microsoft Graph API.
I recommend visiting the UserVoice and adding your suggestion.

Resources