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
5
votes
4 answers

MsalUiRequiredException when calling Microsoft Graph SDK from NET Core web app

We have a NET Core 3.1 web application where users are authenticated in Azure AD with the Microsoft.Identity.Web package. We are calling the Microsoft Graph SDK on behalf of the signed in users as described here. After logging in to the application…
5
votes
1 answer

How to resolve a "Transient error" from Microsoft Graph API?

I am building an app for a client using the Microsoft Grap API and when I log in with a particular account I get this error: Request Id: d300b62e-e0a5-4f62-9957-1cc10fd42800 Correlation Id: e1912683-45cb-459e-b631-9706f6cd2479 Timestamp:…
slarge
  • 637
  • 1
  • 7
  • 19
5
votes
2 answers

Graph returns "Code: ResourceNotFound Message: Invalid version: me Inner error"

I'm trying to perform a simple operation of reading a user profile. After I granted relevant permissions for this operation, I was able to acquire a token by writing the following code: static void Main(string[] args) { var getToken = new…
ohadinho
  • 6,894
  • 16
  • 71
  • 124
5
votes
1 answer

Microsoft Graph: Unable to filter by binary singleValueExtendedProperty

I'm trying to retrieve an event from the grapi api based on a binary extended property that I already have a value for. I have retrieved this value from the same api so I know that an event with this value exists. I also know that the property id is…
meum
  • 112
  • 7
5
votes
3 answers

Convert DirectoryObject to User

Given a query for members of a particular directory role, I would like to return a list of corresponding users. What I have is this: IDirectoryObjectCollectionWithReferencesRequest request =…
5
votes
1 answer

Azure AD Graph: Secure binary serialization is not supported on this platform

We are running on .NET Core 2.1 and sometimes get the exception "Secure binary serialization is not supported on this platform" when running the following query: await _adClient.Users[userId].AppRoleAssignments.ExecuteAsync(); Reexecuting the query…
5
votes
1 answer

How to access Microsoft Graph Java API from Java application behind a proxy server?

I am using MS graph Java sdk in order to access O365 ODFB drives from my java application. When I am by-passing the enterprise proxy server(connected to open internet) then I am able to get desired response from the APIs. But when I am connecting…
5
votes
3 answers

How to search users in Microsoft Graph SDK with C#?

In my C# application, I am using Microsoft Graph SDK with Azure AD implementation. Please suggest me how to search users in my organisations (global contacts) based on search parameters . For example , if "Raj" is the search parameter, I should be…
Shashi1988
  • 61
  • 1
  • 3
5
votes
2 answers

How to add extensions using Microsoft Graph Client?

I want to add extensions to a User using GraphClient. I couldn't find the proper C# code anywhere. Can anyone help? Dictionary addData = new Dictionary { { "HoloFlag", currentUser.UserPrincipalName …
Akhil K J
  • 121
  • 8
5
votes
1 answer

Does the Microsoft Graph SDK for .NET automatically handle rate limits?

Microsoft rate-limits certain Graph endpoints to 10,000 requests per 10 minutes (source). If the limit is reached, the Retry-After header indicates how long to wait before sending another request. Is this handled automatically by the Graph SDK? If…
4
votes
1 answer

Upgrade Graph SDK to 5.0 - Reference to type IAuthenticationProvider claims it is defined in Microsoft.Graph.Core, but cannot be found

Steps: Create sample project from template in VS2022 (.NET 7) with authentication and Graph -> works Update Graph Core to 3.01 and Graph to. 5.1 -> Could not load type 'Microsoft.Graph.IAuthenticationProviderOption' from assembly…
Benjamin79
  • 133
  • 2
  • 12
4
votes
2 answers

Add/delete members to M365 groups using MS Graph API with Golang

I'm trying to add and/or delete group members using graph/api with Golang I am able to list members, or owners for groups, but not able to add to delete members. //---CODE--- To list member of groups this code works an intended cred, err :=…
BrianB
  • 41
  • 3
4
votes
1 answer

Is this how to get a refresh token using msal-node library?

I'm using the msal nodejs library. I have the following code const ouathClient = new msal.ConfidentialClientApplication(msalConfig); const tokenRequest = { code: request.query.code, scopes: process.env.OUTLOOK_OAUTH_SCOPES.split(','), …
4
votes
0 answers

In Microsoft Graph API for Mail, how to evaluate if a "Send As" or "Send on Behalf Of" address is valid before sending out the email?

In a business Microsoft 365/Exchange Online account, users' mailboxes can have "send as" or "send on behalf of" permissions of other mailboxes. The way this is utilized via Graph API is to set the From the address of a Message to the alternative…
4
votes
1 answer

MS Graph API: OrderBy does not work when Expand is used (Groups - Members)

Issue: I am retrieving Group Members using Microsoft Graph API. I need to order the results based on the 'displayName'. Doing this on its own, works fine. I also need to know whether the members returned potentially has any of its own members. I…
1
2
3
77 78