1,349 questions
1
vote
1
answer
31
views
Use MIcrosoft Graph SDK to seach without iterating through all pages
I know that by default, I can search through pages of results using Microsoft Graph SDK, using something like this:
var sites = await _graphServiceClient.Sites[siteId].Sites.GetAsync();
while (sites....
1
vote
0
answers
55
views
Secure notifications from Microsoft Graph?
I'm working on a project that requires to create a subscription to an Outlook inbox, through Microsoft Graph's API and SDK.
When the validation call is made from Graph to our systems, it requires an ...
0
votes
0
answers
41
views
How to Moq GraphServiceClient's DeleteAsync()
I have the test below which fails when using MockBehavior.Strict. The _requestAdaptor shown is used in over 200 other tests and works as expected.
[Test]
public async Task ...
0
votes
2
answers
45
views
Attachments are missing in the ItemAttachment - Microsoft GraphAPI
I'm trying to attach an email (Which has a FileAttachment in it) to another email as an ItemAttachment. Just like below.
var originalEmail = new Message{...}; // Consider I have all the required ...
1
vote
1
answer
69
views
How to fetch all SharePoint sites with Microsoft Graph SDK for Java
I want to fetch all SharePoint Sites a user has access to using graph SDK for Java (version 6.32.0). I've obtained the access token and created a graph client (I'd like to use delegated permissions to ...
0
votes
3
answers
77
views
C# MS Graph 5 Upload file to SharePoint site - identifier is malformed or Resource not found for the segment
A bit stuck trying to upload files using C# to SharePoint, the basic code snippet is:
var scopes = new[] { "https://graph.microsoft.com/.default" };
var options = new ...
0
votes
1
answer
65
views
How to create upload session for SharePoint file via MsGraph SDK for C#?
According to the documentation, it's possible to create upload session for large file in SharePoint's Documentation Library if you know list id and item id:
POST /drives/{driveId}/items/{itemId}/...
0
votes
1
answer
73
views
How to create a new folder in Drive root via MsGraph SDK for C#?
How to create a new folder in root of some One Drive via Microsoft Graph SDK for C#?
Documentation suggests to use HTTP post request to "me/drive/root/children" or "/drives/{drive-id}/...
0
votes
0
answers
86
views
Sending an email as a delegated account. While saving the email in a different account
In our company, we use an implementation with the Microsoft Graph API to manage emails. For this we have the following business case:
We want to be able to log in with an account like [email protected].
...
0
votes
0
answers
61
views
How to set names in a new bookingCustomer (Microsoft Bookings)
the documentation shows how to set the display_name but not the first and last names!
from what I can find, setting the first and last name is only possible through the web interface, which is not ...
0
votes
1
answer
66
views
Microsoft Graph API Bulk Reset Users Password
I'm using the following code to reset multiple users' passwords in one go, but it isn't working:
public async Task<IActionResult> BulkResetPassword([FromBody] string[] userIds)
{
var ...
0
votes
1
answer
69
views
How can I send a raw authenticated request to Microsoft Graph using a GraphServiceClient, when the SDK doesn't yet support a new endpoint?
Consider a GraphServiceClient that are to be injected in ASP.NET Core controllers:
var graphClient = new GraphServiceClient(new DefaultAzureCredential());
I want to add sponsors to guest users, which ...
0
votes
1
answer
124
views
Unable to access onedrive files using graph api
I want to use graph API to get the content of my onedrive (personal account), but failed with error
{
"error":
{
"code":"UnknownError",
"message":...
0
votes
0
answers
57
views
How can I specify WithAppOnly() globally for a GraphServiceClient, so I don't have to specify it for every single Microsoft Graph request?
How can I specify WithAppOnly() globally for a GraphServiceClient, so I don't have to specify it for every single Microsoft Graph request?
Consider the following code:
var c = app.Services....
0
votes
2
answers
30
views
List files in a SharePoint/teams site root missing
Using c# SDK Microsoft.Graph 5.71.0
I have my _graphClient
I am trying to list files in a sharepoint site.
so far I have
var driveItemsb = await _graphClient.Sites[_siteId].Drive.Root.Children....