Questions tagged [microsoft-graph-sdks]

Microsoft Graph SDKs refer to a collection of language-specific SDKs for Microsoft Graph. This tag should generally be used in conjunction with the [microsoft-graph] tag.

The current list of available SDKs for Microsoft Graph can be found at https://developer.microsoft.com/en-us/graph/gallery/?filterBy=SDKs

1156 questions
2
votes
1 answer

Parse a graph url to get search, filter, select parameters

I have the following code in C# to make a graph call: public async Task GetResponseAsync(string s) { var queryOptions = new List() { new QueryOption("$count", "true"), …
2
votes
1 answer

Microsoft Graph list group events using Application Permission

Is there any way to get an office 365s group's events using the application credentials instead of the delegated work or school account? I have been tasked with gathering group events from two tenants with different users and putting all these…
2
votes
0 answers

Microsoft Graph Golang SDK, Retrieving mailbox messages as service client

I am trying to retrieve emails from a shared mailbox using https://github.com/microsoftgraph/msgraph-sdk-go. I've followed the steps for this package, creating the registered app, assigning the permission. My issue is with the response I am getting.…
Avery Carty
  • 151
  • 2
  • 9
2
votes
1 answer

MS Graph API Not Accepting FileAttachment

We're attempting to send emails with csv file attachments via the MS GRAPH API. Our process works fine for emails without attachments, but whenever we attempt to include the csv we receive the following Error 400: The property 'ContentBytes' does…
cWilson
  • 25
  • 5
2
votes
1 answer

Microsoft Graph - "System.ArgumentException: '"UTF-8"' is not a supported encoding name" only on my PC

I'm having an issue with what I've deduced is a content type with double quotes inside the single quotes when sending a request to Microsoft Graph. The "cool" part is that this only happens on my PC, and the exact same code with the exact same…
2
votes
2 answers

Using MS Graph PowerShell SDK in Azure pipeline for granting access to Managed identity

I am deploying an Azure function that needs to access Microsoft Graph API (reading App registrations) using Managed Identity. The function is deployed using Azure pipelines, this would mean that the pipeline need to provision the MI, with necessary…
user527614
  • 465
  • 5
  • 19
2
votes
0 answers

How to upload/download file to a user's OneDrive using Microsoft Graph in MAUI

I have a new MAUI application (Android, iOS, MacCatalyst, and Windows) that I need to upload/download a SQLite file to the user's OneDrive account "App Folder" location for my application. In another Xamarin.Forms application (Android, iOS, UWP), I…
Orgbrat
  • 331
  • 6
  • 20
2
votes
2 answers

Microsoft Graph - GraphServiceClient read email with another account

I need to read a certain email but a different account. The first example works string applicationClientID = "aaaaaaaaaaaaaaaaaaaa"; string directoryTenantID = "dddddddddddddddddd"; string secretID =…
2
votes
2 answers

How to revoke access/refresh token on microsoft graph API

I have integrated microsoft teams in my project where a user can give us access to create meetings on teams on his/her behalf. But now I want to give the user a option to disconnect his/her account i.e. we will no longer be able to create meetings…
2
votes
1 answer

Get auditlogs for a specific user through object id or principal name

I am trying tofind who issued a guest user from a given object id. As far as I know this can only be found through audit logs. However I cannot seem to find auditlogs from a given user only. I tried: var directoryAudits = await…
2
votes
2 answers

Getting all users and their last login via graph API

I am trying to export all users data including last login date. I am following this article: https://morgantechspace.com/2021/09/find-last-login-date-for-all-azure-ad-users-using-powershell.html By using this…
2
votes
1 answer

Unable to update multiple properties on a user with a single request

I was unable to update any of the following user properties(SharePoint Online): aboutMe, birthday, hireDate, interests, mySite, pastProjects, preferredName, responsibilities, schools, skills. With other user properties in one request. Following the…
DimaBond
  • 61
  • 6
2
votes
0 answers

Microsoft Graph access token lost on server restart

I have set up an ASP NET. 5 web app which users Microsoft Identity and Microsoft graph with the following code: services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) …
2
votes
1 answer

Uploading large file to SharePoint with metadata using Microsoft Graph SDK for java

Uploading a large file to SharePoint Online (Document library) via the MS Graph SDK (Java) works for me, but adding also metadata on an upload seems to be hard I tried the to add the metadata inside the DriveItemUploadableProperties, because I…
2
votes
1 answer

Retrieve Document through msgraph using Document ID

I have enabled the Document ID feature in my Office 365 Sharepoint collections. I would like to store the Document ID on our php server and then be able to allow the server to download the document using the document ID. I have successfully set up…