microsoft-graph-docs | Documentation for the Microsoft Graph REST API | REST library
kandi X-RAY | microsoft-graph-docs Summary
kandi X-RAY | microsoft-graph-docs Summary
Documentation for the Microsoft Graph REST API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of microsoft-graph-docs
microsoft-graph-docs Key Features
microsoft-graph-docs Examples and Code Snippets
Community Discussions
Trending Discussions on microsoft-graph-docs
QUESTION
I can add line height in the OneNote app, but when I download the page's HTML via the API, I don't see any HTML that would indicate the line height is set.
For example - take this page...
OneNote page - plain text input - no line spacing
The HTML generated is...
...ANSWER
Answered 2022-Feb-22 at 10:04I am not export in OneNote, But as per your requirement it seems we can get the below INPUT attribute in OUTPUT attribute on our HTML code.
data-id
,data-tag
,id
,style
For example:
Input Attribute:
QUESTION
I'm unable to find users in Azure AD B2C by their phone number used to sign in using the Microsoft Graph API. According to the documentation, I should be able to query users by their identities as long as I provide issuer
and issuerAssignedId
in the filter, but I always receive an empty result set.
I've tried:
- Querying by an email address identity instead. This succeeds.
- Signing in for the first time with the phone number, in case there's some sort of initialization that needs to happen. The user is still not returned.
- Querying by the user attribute
mobilePhone
. Querying by mobilePhone requires setting ConsistencyLevel=eventual, and ConsistencyLevel=eventual is not supported in Azure AD B2C.
Below is a request that successfully creates a test user, followed by requests trying to find that user by the email address or by the phone number.
The variable {{B2C_TENANT}}
is the full tenant domain: example.onmicrosoft.com
.
First, I create the user and give it two sign in identities: One with an email address, one with a phone number.
Request:
...ANSWER
Answered 2022-Feb-13 at 23:32URL encode the phone number. %2B13105551234
, then it works.
QUESTION
When I send batch request made of calendar appointment request to Graph API, I seldom encounter a improper response from the API: some XML are injected as is in the JSON response. This is impossible to unserialize, so I cannot know which appointment had issues, and it leaves no choice but to reiterate the same calendar appointments batch, which poses performance issue.
The request to batch API looks as follow (I intentionally hide information with *** in the post data below and did not show with ... the 3 others requests to calendar Graph API)
...ANSWER
Answered 2021-Jun-02 at 16:12I rather reported the bug to the right github repo https://github.com/microsoftgraph/msgraph-sdk-serviceissues/issues/93
QUESTION
I'm trying to request the supported timezones in the IANA format for a user (in Java), and getting the following error:
...ANSWER
Answered 2021-Feb-01 at 12:28I have modified the call something like this
https://graph.microsoft.com/v1.0/users/UPN/outlook/supportedTimeZones(TimeZoneStandard='Iana')
It worked for me.
QUESTION
We need to read out distribution lists from a contact folder of a dedicated exchange/outlook mailbox (O365). The process must run as a service with no user interaction.
Unfortunately the Graph API does not support distribution lists (not even the Graph beta version does). Because of this we have to use another API - I tried using EWS.
I succeeded by granting full_access_as_app permission to our service. However this allows to read and modify ANY data in ANY mailbox which is a security risk. Granting this permission only to read out some distribution lists from one mailbox is not acceptable.
So I tried to use the ROPC flow that should allow authenticating a user and then accessing the mailbox with the permissions of this user. I followed the information here: How to get OAuth2 access token for EWS managed API in service/daemon application
(Btw I found this post linked in the discussion here: https://github.com/microsoftgraph/microsoft-graph-docs/issues/5659 which has some more information about the topic.)
I exactly followed the steps mentioned above but unfortunately this is not working: I always get a “401 Unauthorized” exception when doing the EWS calls (OAuth calls succeed) and no additional information.
According to https://developer.microsoft.com/en-us/graph/blogs/upcoming-changes-to-exchange-web-services-ews-api-for-office-365/ this is no longer working. So how can I read out distribution lists from a specific mailbox without giving full access and without an interactive login?
EDIT Here as requested the full code:
...ANSWER
Answered 2020-Nov-17 at 08:00Distribution groups are only exposed in Exchange PowerShell today, and are not currently supported via the Microsoft Graph API.
Please vote on this feature request on UserVoice:
QUESTION
I am trying to create new skills for different users using the Microsoft Graph API, but it always ends in the following error response.
...ANSWER
Answered 2020-Nov-04 at 10:27After my repeated tests, I came to a conclusion: You can only create skillProficiency
for yourself, not for other users.(Please note that I set the proficiency
attribute to elementary
).
QUESTION
I'm currently creating an dotnet core app to consume and process data from an Excel sheet stored in personal OneDrive. I'm using MSAL
to create a session token and the data consumption is working great. Here's my working code:
ANSWER
Answered 2020-Oct-28 at 21:23I can confirm, that this issue with no .Format
on IWorkbookWorksheetRangeRequestBuilder
is frustrating for me as well ;) I've reported this issue on GitHub:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/233
For me the workaround was to do it like so (i was basing it on this SOF: REST call to Microsoft Graph
QUESTION
I have the same issue as has been reported here but I can't seem to find a follow-up question. For the sake of completeness, this is what this person reported and it's the same as my issue:
"We are storing the calendar event id in our DB, and have noticed that there are duplicate Ids being set for graph. Perhaps we need to be using the iCalUid which stays unique, although it is not apparent that we should be using this in the Microsoft documentation. Furthermore, requesting an event by iCalUid requires filtering through optional parameters, where as the Get method for event simply uses the Id. Again, not so obvious.
Repro steps:
- Write a console app and creates x amount of events with the same start, end, owner, subject, location, etc.
- Run it once with 5 events. Then run it again with 5 events.
- Finally, run it again for 100 events.
You should see that the ids from the first 2 batches, appears in the 3rd (larger) batch."
I'm fresh out of ideas. There are no exceptions and everything seems normal but we get duplicate event IDs when we create a large number of events with roughly the same properties (start and end times may differ).
How can we solve this duplicate event id issue?
...ANSWER
Answered 2020-Sep-10 at 09:50I may have found the culprit: a case insensitive database. I'd have to investigate but it seems that the ID increments a part of its key using lowercase and uppercase letters. Some event ids are exactly the same apart from one letter like RAAA=
vs rAAA=
.
Adding a case sensitive collation to the SQL Column seemingly fixes the issue:
[EventId] NVARCHAR(450) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL
Not sure if this is the actual cause and/or solution but suddenly all of our errors have disappeared.
QUESTION
Context:
I am trying to download files into a buffer for AngularJS application in order to forward the file to the backend for storing on the server (backend is not under my control) therefore I need to get file data into Blob which then gets uploaded my our own servers.
Issue:
Microsoft graph gives me their recommended @microsoft.graph.downloadUrl
property in the JSON file which retrieves a list of all files in the currently selected folder. As I use it to download the file itself I get hit with Access to XMLHttpRequest at [the URL from @microsft.graph.downloadUrl] from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
My code:
...ANSWER
Answered 2020-Jul-14 at 13:36So basically my whole approach was wrong.
I deduced from other cloud services that Microsoft Graph would return JSON with data of the file.
MICROSOFT RETURNS THE FILE ITSELF
Therefore fetch
or a very simple request without any headers required is enough to get the file and then with .blob()
or responseType: 'blob'
you get a blob from the response.
QUESTION
We have an app that creates MS Graph Subscriptions where a user wishes to 'track' an outlook email conversation. The subscription uses the conversation id of the email to send notifications when an email within the conversation is sent or received. Once we receive a notification from MS Graph, we then use the message id to get details about the email so we can store it in our CRM.
I am trying to find information on what the limitations/throttling are in regards to this. I have read the info here and here but neither are very specific. I also raised a GitHub issue with the MS Graphs docs team here but they have not responded.
I really want to know:
- Is there a limit for Outlook based Graph subscriptions per user?
- Is there a limit to the number of messages that we can retrieve per user?
ANSWER
Answered 2020-Apr-30 at 19:54Is there a limit for Outlook based Graph subscriptions per user?
Yes there is limit. Each
user
orgroup
can requests 10,000 API call in a 10 minute period. It could be same for user and group as well. You could have a look official document
Is there a limit to the number of messages that we can retrieve per user?
Normally 500 message each user can retrieve but it is customizable. You can customize it up to 1000 for each user.
For more you could have a look official document here
Hope that would help. If you still have any concern feel free to share.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install microsoft-graph-docs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page