I'm trying to fetch information about meeting rooms such as capacity and office.
I have the resource email address and MS ID.
I can view this information in Outlook but cannot when using the endpoint https://graph.microsoft.com/v1.0/users/{resource id}
Is this possible using the current API?
Any help appreciated.
You have to add one more attribute in graph endpoint to fetch room details as mentioned in the below example :
https://graph.microsoft.com/beta/users/{resource id}/findrooms
Reference : https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_findrooms
Related
I'm looking to integrate Microsoft's Purview DLP in my web application. My application sends email so I want to block any sensible information from being sent.
Basically a user is going to be under a Microsoft Purview policy to prevent data losses. I want to integrate his DLP policy within my web application.
My two main question were: Is there an Api call that can retrieve then sensitivity label of a certain document of a user? And is there an Api call that can scan a document or string with the regex expression of Microsoft Purview?
Example: Let's say I want to send an email with a document, I want to see through an Graph Api call if we can retrieve the sensitivity label of Microsoft Purview of a certain document linked to a specific user. Then I want to scan the email content and the document content with Microsoft's Purview regex expression to see if there's any sensible information within the email. Ideally scanning the data would be an Graph Api call with a string containing the document and email content and then getting the response from the Api if the email can be sent or not.
Is there a way to do this? All the documentation I found was pretty basic and wasn't answering my questions.
To get the sensitive label through the API:
GET /users/{usersId}/security/informationProtection/sensitivityLabels/{sensitivityLabelId}
or
GET /me/security/informationProtection/sensitivityLabels/{sensitivityLabelId}
For more info:https://learn.microsoft.com/en-us/graph/api/security-sensitivitylabel-get?view=graph-rest-beta#http-request
Using the Microsoft Graph Beta REST API for Customer Bookings I would like to retrieve the public link for a specific booking service page, which is available through the MS Bookings app here:
Booking service sharable URL
It looks like: https://outlook.office365.com/owa/calendar/[bookingBusinessEmail]/bookings/s/LdQCYS7WqEa7upCnyiybFg2
However, it doesn't seem to be in the response body for bookingService or any other resource: https://learn.microsoft.com/en-us/graph/api/resources/bookingservice?view=graph-rest-beta
Is there a way via MS Graphs to get this link?
Thanks
Looking through the documentation shared and the Bookings resources, it looks like there isn't yet a way to retrieve the public link using MS Graph.
We're using MS Graph API to get the list of emails from an Outlook 365 mailbox. We have a requirement to list the attachments in every email.
When using the List Attachments endpoint of the Graph API, the contentBytes attribute value in the response contains the entire Base64 encoded attachment content. This increases the response size significantly. We have no need to access or store the attachment content.
https://learn.microsoft.com/en-us/graph/api/message-list-attachments?view=graph-rest-1.0&tabs=http#example
Is there a way in MS Graph API to just get the attachment file name(s) and IDs for one or more email messages?
Yes, you can use the same /attachments endpoint and get only the id and name of attachment using the $select query parameter.
Simply use the query
https://graph.microsoft.com/v1.0/me/messages/{messageid}/attachments?$select=id,name
Result:
You can always test graph calls in Graph Explore.
In Microsoft admin center, we can see the new columns available for the Microsoft Teams User Activity as specified in the following
On trying to retrieve the data vis Microsoft Graph API, we are getting the old attributes in response:
Request : https://graph.microsoft.com/beta/reports/getTeamsUserActivityUserDetail(period='D180')?$format=application/json
On following the redirect link and downloaded the Response CSV file, I could see new attributes in that file
Is I am missing anything in the request ? Any help would be appreciated
is it possible to query the Mailbox Type of a user also via GraphAPI?
When i'm using the "GET https://graph.microsoft.com/v1.0/users/" a lot of general information is displayed. i know, not every user synced to azure must have a mailbox, but in case, the user got a mailbox - is it possible to query the mailbox type?
Thanks
br
It is not possible to query a Mailbox Type using Graph API.
You can get the Mailbox type information using Exchange PowerShell, Get-Mailbox under RecipientTypeDetails parameter.
https://learn.microsoft.com/en-us/powershell/module/exchange/get-mailbox?view=exchange-ps