Getting Started Microsoft Graph SDK
Published Feb 23 2023 10:54 AM 2,887 Views

The Microsoft Graph SDK supports several programming languages, including .NET, Java, Python, JavaScript, and more. Choose the language you're most comfortable with and that's appropriate for your application.


The Microsoft Graph SDKs are designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph. The SDKs include two components: a service library and a core library.

The service library contains models and request builders that are generated from Microsoft Graph metadata to provide a rich, strongly typed, and discoverable experience when working with the many datasets available in Microsoft Graph.

The core library provides a set of features that enhance working with all the Microsoft Graph services. Embedded support for retry handling, secure redirects, transparent authentication, and payload compression improve the quality of your application's interactions with Microsoft Graph, with no added complexity, while leaving you completely in control. The core library also provides support for common tasks such as paging through collections and creating batch requests.

Supported languages

The Microsoft Graph SDKs are currently available for the following languages:

Starting to Build your first Graph Application

Register your application:
Before you can use the Microsoft Graph API, you need to register your application with Azure Active Directory and obtain an application ID and secret. This will give you the required credentials to authenticate your app and access user data.Install the SDK: The Microsoft Graph SDK is available through package managers for each programming language, such as NuGet for .NET, NPM for JavaScript, and PyPI for Python. Install the SDK package for your chosen programming language.
Initialize the SDK: Once you've installed the SDK package, you need to initialize it by providing your application ID and secret to the SDK. This will allow the SDK to authenticate your app and authorize it to access user data.

Start coding: Now you're ready to start coding! Use the SDK to build your app, making calls to the Microsoft Graph API to retrieve data and perform actions on behalf of the user.

Test and debug: Once you've built your app, it's important to test and debug it to ensure it works as expected. Use the tools and techniques provided by your programming language to test and debug your app.

Overall, getting started with the Microsoft Graph SDK involves installing the SDK package for your chosen programming language, initializing it with your application credentials, and using it to make calls to the Microsoft Graph API to access user data and build your app.

Want to Learn More Join Hack Together 1st March - 15th March



There are several reasons why you might want to use the Microsoft Graph SDK to build apps that use the Microsoft Graph:

  1. Easy to use: The Microsoft Graph SDK provides an easy-to-use programming interface that abstracts away many of the complexities of working with the raw HTTP API calls, making it easier to build apps that integrate with the Microsoft Graph.

  2. Faster development: The SDK offers a high-level programming interface that allows developers to focus on building their app's core functionality, rather than spending time dealing with lower-level details of the API calls.

  3. Consistent authentication: The Microsoft Graph SDK handles authentication for you, making it easier to build apps that securely access the user's data.

  4. Supports multiple languages: The Microsoft Graph SDK supports several programming languages, including .NET, Java, Python, JavaScript, and more, making it easier to build apps in your preferred language.

  5. Better performance: The SDK's internal caching mechanisms can help to reduce the number of API calls needed to retrieve data, resulting in better performance and a smoother user experience.

  6. Regular updates: The Microsoft Graph API is constantly evolving, with new features and functionality being added on a regular basis. The Microsoft Graph SDK is updated to reflect these changes, making it easier to take advantage of new capabilities as they become available.

Overall, the Microsoft Graph SDK can help to streamline the app development process, reduce development time, and provide a more consistent and reliable experience for users.

Microsoft Learn Graph Learning Modules
Version history
Last update:
‎Feb 23 2023 10:59 AM
Updated by: