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

How do I authenticate to Microsoft.Graph using the Beta client?

I'd like to call the CloudPC rest API using a C# client. The C# client is in the beta nuget package Microsoft.Graph.Beta. Here is a sample client that illustrates how to authenticate using the the non-beta client. // Build a client…
Christopher King
  • 1,034
  • 1
  • 8
  • 21
2
votes
1 answer

Microsoft.Graph SDK connects to user's OneDrive but Items returns NULL

I'm writing a utility in C# using the Microsoft.Graph SDK that connects and reads a user's OneDrive. I have created an App Registration, granted the application Files.Read.All permissions, and given Admin consent per the documentation. I am able to…
2
votes
1 answer

Get all users with a specific email domain using Microsoft Graph SDKs

I would like to make this query to the Microsoft Graph API using the Microsoft Graph SDKs. I would like to get all users with the domain in email address is @something.com. Use of $filter with the endsWith operator GET…
2
votes
0 answers

Dismissing Outlook reminders triggers MS Graph API event change notification and ChangeKey change, any way to avoid?

My app keeps track of users' calendar events via Microsoft Graph API. My database records each synced event's ChangeKey, which helps my app determine whether a event has changed and should be processed by business logic. I also subscribe to the…
2
votes
1 answer

Microsoft Graph Java SDK and MSAL4J: How to obtain an OnBehalfOf provider to initialize a graph client

I'm using Microsoft Graph Java SDK and the MSAL4J Authentication library in order to follow the OnBehalfOf scenario presented here: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow Based on the…
2
votes
1 answer

Uploading a Terms of Use PDF via Powershell to Azure using Graph

I've just started trying to use the MgGraph module to try and perform operations on an Office 365 tenant to perform some configuration automation and I'm having a hard time wrapping my head around some of these cmdlets - in particular, the one I'm…
2
votes
1 answer

Get the Sharepoint site for a Group and upload a file using Graph

Using the MS Graph SDK via a Teams application, I'm trying to get the Sharepoint site of a group and upload a file to it. I'm unable to get a reference to the Drive of the site, it is always null for me. Here is what I'm trying: var siteName =…
Corv1nus
  • 4,523
  • 1
  • 26
  • 37
2
votes
2 answers

Unable to get Sign Ins for Service Principal using Microsoft Graph API

I am trying to use List SignIns API to get a list of sign-ins for my Service Principal however the API is not returning any results when I try to filter the results by Service Principal id and/or Service Principal Application Id. If I remove the…
Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
2
votes
1 answer

[microsoft-graph-api]Developing for Android in Java Desugaring not working for API 24

I am trying to update the microsoft-graph-api to 3.3.0 and everything works in the Emulator, but the real device is an Android 7.0 (API 24) and I get: com.android.tools.r8.a: MethodHandle.invoke and MethodHandle.invokeExact are only supported…
2
votes
0 answers

Microsoft Graph List places api not returning updated results

Hello Microsoft Graph Team, I am using Microsoft Graph Apis. I have added few rooms to the tenant but those are not reflected as part of response for List places api. However, findRooms api which is in Beta gives the updated response. I am using the…
2
votes
1 answer

Microsoft graph api for java Authentication code provider works only on first request

We are using Microsoft graph sdk for java for the beta api version 0.7.0: https://github.com/microsoftgraph/msgraph-beta-sdk-java I go through the authentication code flow and in the code that receives the authentication code, we have code like they…
2
votes
1 answer

Microsoft Graph 3.0 java.net.SocketTimeoutException while retrieving group members

I have recently upgraded my application to : Spring Boot: 2.4.4 microsoft-graph: 3.0.0 While upgrading the application i have followed the upgrade guide. I'm retrieving the group members using below code: public void…
Sujit J
  • 55
  • 2
  • 12
2
votes
1 answer

How to filter users by assigned plan using Microsoft Graph API

I'm trying the request below. Filtering users by their servicePlanId in assignedPlans property, trying to filter "Phone System" plan. https://graph.microsoft.com/beta/users?$filter=assignedPlans/any(x:x/servicePlanId eq…
2
votes
2 answers

MS Graph: How To Distinguish Teams-Enabled M365 Groups Using GraphClient?

The MS Graph rest API surfaces a resourceProvisioningOptions attribute to indicate whether a MS365 group is also a Team (see below). However, those values do not appear to be available in the GraphServiceClient. I found this post, and used the…
2
votes
1 answer

Durable Functions with Graph API Paging Call?

I have been doing some reading on Durable Functions using C# and long running tasks and am trying to think of a way they could work with a long running Graph API call (for example, against a Group's Users). I understand that paging would be returned…