All Questions
Tagged with c# microsoft-graph-api
2,007
questions
0
votes
2
answers
46
views
Fetch documents/files from share point drive
We have multiple SharePoint sites, and our application is registered on the domain. Currently, we are trying to fetch documents from SharePoint using a client ID and secret, but we are encountering ...
0
votes
0
answers
14
views
Subsite cannot be found using correct subsite ID, despite the fact that the subsite exists, using Microsoft Graph
I have an application that reads files from a subsite on Sharepoint. Application permissions are being used, and those permissions have been applied to the SiteId. Below is the relevant portion of the ...
0
votes
1
answer
32
views
How to add ConsistencyLevel Eventual to GraphAPI call in NET 8
I am trying to retrieve user information from GraphAPI, in a Blazor page with .NET 8:
@inject GraphServiceClient GSC
@inject MicrosoftIdentityConsentAndConditionalAccessHandler ConsentHandler
// ...
...
0
votes
0
answers
40
views
.Net Email client Application with office 365 accounts
I'm currently integrating SMTP services in my application.
I must state that I don't have any experience with Azure.
My customers have different email providers and I allow them to configure their own ...
0
votes
0
answers
22
views
Entra and MIP Errror using C# .AccessDeniedException: The service didn't accept the auth token. Challenge:['']
Here is the error message I get, we are using a login and password to get the auth token
just not sure what permissions we need.
"Microsoft.InformationProtection.Exceptions.AccessDeniedException: ...
-1
votes
0
answers
37
views
Am I using KQL incorrectly, or is there another reason?
I using sdk 4.x version.
I refer
https://learn.microsoft.com/en-us/graph/search-concept-files#example-5-use-filters-in-search-queries
https://learn.microsoft.com/en-us/sharepoint/dev/general-...
1
vote
1
answer
52
views
MsalUiRequiredException: An error occured during token acquisition: No account or login hint was passed to the AcquireTokenSilent call
I have a problem with the login and don't know what to do.
I'm pretty sure it has to do with my program.cs:
using MudBlazor.Services;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using ...
1
vote
0
answers
29
views
How do I avoid rate limit issue when extracting many images from microsoft graph urls?
I have a web application which displays teams messages from various channels in one place, when a user sends an image in teams chat, it is received as a url in the format
https://graph.microsoft.com/...
0
votes
1
answer
93
views
Is it impossible to get refresh token in c#?
My goal is managing user's access token by refresh token. Because, I don't want to require login(interactive) after once login.
And, I need to personal user token. So, I use "...
-2
votes
0
answers
38
views
How to Create a Device on AAD Using Microsoft Graph API?
I'm trying to use the Microsoft Graph API to create a device in Microsoft Entra ID. I need to generate a device ID and include it in the deviceid property of the POST request. Additionally, I want to ...
0
votes
1
answer
74
views
Why are PublicClientApplicationBuilder requires client(app) Secret?
My final goal is manage user's access token by refresh token.
I need token from user.
So, I tried this logic.
var app = PublicClientApplicationBuilder.Create(clientId)
.WithRedirectUri(redirectUri)...
0
votes
1
answer
23
views
An error occurs when extracting data from a list in a child SharePoint site
Good day. When working with SharePoint, I encountered the need to update a field in the list, for this purpose I use the Microsoft Graph library version 4.54 for c#. I have a method for this:
{
...
0
votes
0
answers
34
views
Is it Possible to Implement Token-based Authentication Based on User UPNs(m365 account without password) in a Web Application?
I'm developing a web application where I only have users' UPNs (User Principal Names). I need to obtain individual tokens for each user based on their UPN without prompting them with an additional ...
0
votes
1
answer
59
views
Microsoft Graph SDK with pageIterator
I'm facing a wall here, as the solution proposed by Microsoft doesn't work as expected and is not even building. Here is my issue: I want to return all the users from a specific group with expanded ...
0
votes
0
answers
19
views
How to display Microsoft Graph DriveItems with a Spectre.Console Tree using a Delta Response?
I am writing a program that should Migrate files from a specific drive in Sharepoint to another. Before it is said, when you see my code, I know there are better ways to do this now, but due to ...