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
3
votes
1 answer

Does Microsoft Graph change notification always send UPDATED notification for CREATED events?

I'm using Microsoft Graph API change subscription to handle created/updated/deleted calendar events. I noticed that the API always sends at least one UPDATED notification for each newly CREATED event. A quick search shows that it's normal…
3
votes
1 answer

How to subscribe to MS Graph calendar (not calendar event) change notifications, i.e new calendar created/deleted etc?

Microsoft Graph supports events change notifications, which are subscribed on the calendar level, so that we can get new/deleted/updated event notifications without constant polling. I got it to work fine with the .NET Graph SDK. But what about the…
3
votes
2 answers

Best way to use Microsoft.Graph SDK when I already have users' refresh tokens stored in database?

I'm building a multi-user, multi-tenant app that will access the Microsoft Graph API on behalf of many users while they're offline. Because the app uses the Microsoft Identity for external OIDC authentication, during the user's first login, I…
3
votes
1 answer

Calendar event created using Microsoft Graph API. The webLink returned in the response is not working

I created an event in a group calendar using Microsoft graph API. The weblink that is returned in the response after creating a calendar event, is not working. I want to open the calendar event in the read mode using this webLink. The weblink, when…
3
votes
1 answer

Create user custom attribute for whole B2C instance via graph api or graph sdk

I want to create 'user custom attribute' for whole b2c instance via graph api or sdk. Just like I do thru Azure Portal following ms documentation quoted below. 1. Sign in to the Azure portal as the global administrator of your Azure AD B2C…
3
votes
2 answers

"Sorting not supported for current query." error when sorting List members API

I keep getting the above error when try to sort the list on displayName, however sorting is clearly supported according the example below: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=csharp#request-3 I tried adding…
3
votes
2 answers

Unable to set scopes with EnableTokenAcquisitionToCallDownstreamApi with AddMicrosoftIdentityWebApiAuthentication

This compiles in startup.cs: string[] initialScopes = Configuration.GetValue("GraphApi:Scopes")?.Split(' '); services.AddMicrosoftIdentityWebAppAuthentication(Configuration) …
3
votes
1 answer

IAuthenticationProvider is deprecated in microsoft-graph:2.3.0, how do I create a GraphServiceClient instance now?

I am upgrading the version of the msgraph-sdk-java library in my project. I was using version 1.7.1 but I had some issues with setting conflict behavior when uploading files >4MB. I saw the issue was fixed in the latest version (see here) so I am…
ecrb
  • 670
  • 4
  • 17
3
votes
0 answers

Power Point is not being converted to PDF using Microsoft Graph API calls

I am using Microsoft Graph calls to convert my presentation into pdf. Usually it converts successfully for general presentations but it fails if size of my ppt is little big(around 1 MB) or contains some high quality graphic images. I'm getting this…
3
votes
0 answers

The number of keys specified in the URI does not match number of key properties for the resource 'microsoft.graph.bookingAppointment

We are trying to use Graph APIs for Bookings application. In fact, we are customizing the C# code from the microsoft sample : https://microsoft.github.io/bookings-samples/ We have the application registration and all the permissions configured in…
3
votes
1 answer

Search for an event according to a specific value of a singleValueExtendedProperty

Situation: We have an old application that is creating events in outlook (via MAPI). To identify the events the custom property 'CTOID' is set with a specific value by which the events can be found again. For a newer application we would like to use…
3
votes
1 answer

Graph Lifecycle Notifications Not registering correct endpoint

I am trying to us the Lifecycle events within the Graph Beta API using code like this: var subscription = new Subscription { Resource = $"users/{userObjectId}/mailFolders('{resource}')/messages", ChangeType = "created,updated", …
BenIffland
  • 67
  • 6
3
votes
1 answer

Schema Extensions : "Unsupported or invalid query filter clause specified for property 'companyName' of resource 'User'."

I'm currently building an application that requires me to retrieve users from the Graph API depending of a custom property, in that case, extoe82ql2v_test/companyName but so far, the API responded with Unsupported or invalid query filter clause…
Antoine D.
  • 31
  • 5
3
votes
1 answer

BadRequest or Conflict when Create Teams by Graph API

my project is using graph API V.1 version 3.8.0 and .NET core 3.1 I created a group "mark" add member and owner to this group , Everything worked very well but when I create Team Then I receive Error I tried two format body with content below…
3
votes
1 answer

Microsoft Graph Error Responses - How to extract HTTP Status Code and Inner Error Code from JSON?

I'm currently testing the MS Graph .NET Core SDK Client in my .NET Core 3.1 app. Purpose is to provide my own local Web API user service that performs updates/changes/fetching of users from Azure B2C AD. In my intended solution, I will have various…
OJB1
  • 2,245
  • 5
  • 31
  • 63