Outlook - MS Graph API - how to check Room Sharing options? - outlook

I am building a REST integration using MS Graph 1.0.
I am basically creating Room bookings using the createEvent API and this works just fine.
Now as I understand, some Rooms can be private, meaning only shared with specific Users or Groups. How can I check that using MS Graph? Is there a dedicated API for this? O rmaybe at least you can point me to the relevant object/property I should be looking into?
I want to check if the user triggering the integration is one of the users/groups allowed to book that Room and only then create the invite for that room.
Thanks!

Have you tried looking in to places API room resource type, it has bookingType property which says whether the room is standard/reserved. https://learn.microsoft.com/en-us/graph/api/resources/room?view=graph-rest-beta#bookingtype-values.

Related

best way to extract meeting history data with Microsoft Graph

sorry I'm new to MS Graph. I'm working on a app to extract meeting history data for past hour/day/week/month for my company. I found there are APIs I can use:
List events
List calendarView
getSchedule
all 3 have different version under Users, Calendar and Groups,
which is the best to do the job?
I heard about delegated permission and application permission.
is delegated permssion good enough for me? or I have to ask for application permission?
one solution I heard: deletegated permission, create a normal account, share all meeting room account to this account. does this work for me?
Thanks
Wes
You need to understand the differences first: List events - its used to retrieve a list of events in a given calendar. List calendarview - using this you can get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's default calendar, or from some other calendar of the user's. getschedule - you can get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period.
Also you need to understand the differences between the delegated & application permission - documentation. In short, if you want to access your calendar then go for Delegated, wherein if you want to access others calendar as well then go for application permission.

Places API returning NOT_FOUND

Since this morning the Places API has returned NOT_FOUND results for every single place ID we've tried searching for.
We regularly query the API to check details & it has been running fine for over a year but today it's fell over and only returns NOT_FOUND, for over 300 different place ids.
Is there a current issue with the API?
I contacted Google Cloud support today about this because it still hasn't changed.
Yes they no longer support Service area businesses in the Places API. Here is their response:
Thank you for contacting Maps Platform Technical Support. My name is Ana and I'm here to assist you.
Places API mission is to enable developers to help users find relevant places to visit. Since Service Area Businesses are not places users can visit, they do not belong in the Places API. That is the reason why you cannot search it in Places API and it is an intended behavior.
Business owners can fix this via MyBusiness IF they have a brick-and-mortar shop
(a shop someone can visit on the streets).
I find this shocking that developers are unable to pull out information about any ACTIVE business on Google. I have responded with my own views but as expected Google will not change their stance.
Well that is very confusing to customers. You (rightly so) allow local listings to be setup as service area businesses. Why should only brick and mortar shops be allowed to utilise the Place API? That’s separating the market for businesses to advertise properly and surely is not legal.
Regardless of if you agree about service area businesses not being allowed to be shown on Maps – there is no reason that an ACTIVE business should not return details through a Development API which has no public facing impact. It is stifling the support agencies and businesses can provide to its customers.
We're denied access to the Google My Business API and then resort to pulling out data via the Places API and now we can no longer do that.
You should at the very least provide some kind of development data for ANY business that is available on Google, whether that be via the Places API or not – business owners should have a right to pull out data about their own business at any time.
Please forward this to the GMB team.

MS teams: Easy way to get team/chat members?

Is there any way to get the team members in a tab scope using the SDK? I know you can get them by using Graph API, it's just that I wonder if there's a faster way to get them. It would be very useful to apply some context to the info displayed on the tab.
And I've got the same question for groupchat scope. In fact, I can see a method called getChatMembers, but it's not working nor visible at the docs, so I suppose it's not deployed yet.
Nevertheless, in docs I can read:
Because a malicious party run your content in a browser, this value
should be used only as a hint as to who the members are and never as
proof of membership
This kind of advise appears on several fields, so I suppose that using Graph API is safer.
In Tab Context you can get teamId, teamName, channelId etc. In order to get members in Tab you can use /members Graph API. For Bot you can get the team roaster in bot context.
getChatMembers is not yet available for 3P apps. We are working on it.

contacts count and users count are different between Graph API and outlook website

Firstly, I used Microsoft Graph API /me/contacts to get all contacts, and I got 6000+ contacts' info. But when I login https://outlook.office.com/owa/?path=/people and visited [Your Contacts] page to compared the contact number, there are only 5000+ contacts.
Secondly, same problem in users count, I used Microsoft Graph API /users to get all users' info, and I got 5000+. But when I go to https://outlook.office.com/owa/?path=/people and visited [Directory > All Users], the number is only 4000+
I guessed outlook had filter some contacts, but I don't know the the filtering rules.
I wanted to solve this problem, but I don't know how.
So can someone tell me the filtering rules or can I use Microsoft Graph API token to fetch datas from Outlook API directly?
So can someone tell me the filtering rules or
This answer need the guy from outlook team. Ignore now.
can I use Microsoft Graph API token to fetch data from Outlook API
directly?
No. Graph API token not the same as the pure Outlook API.
For the count issue, based on your project requirement to decide which to use. In other words, you can use your own filtering rules. In my opinion, use the data have more records, and then filter.

How can I programatically add a user to a team?

We have a public channel which we would like to link to from an external site. Unfortunately the link which teams gives will not add you to the team. How do I add the user to the team so that the link will kick them into that team's channel?
Right now there is no way to add a user except through the team owner's add user interface. We are working on Office Graph APIs that would support this, but no ETA on that yet.
You can use the MS Graph APIs for adding users to the underlying group. It may take up to an hour for it to be reflected in Teams. We are working on enhancing the Graph APIs to eliminate this latency completely.

Resources