{"id":28524857,"url":"https://github.com/microsoftgraph/msgraph-beta-sdk-java","last_synced_at":"2025-07-27T13:12:47.538Z","repository":{"id":37520385,"uuid":"204568878","full_name":"microsoftgraph/msgraph-beta-sdk-java","owner":"microsoftgraph","description":"Microsoft Graph Beta Java SDK","archived":false,"fork":false,"pushed_at":"2025-07-04T12:25:08.000Z","size":196770,"stargazers_count":26,"open_issues_count":8,"forks_count":10,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-07-06T11:39:03.234Z","etag":null,"topics":["devxeng","java","microsoft-graph","sdk"],"latest_commit_sha":null,"homepage":"https://docs.microsoft.com/en-us/graph/sdks/use-beta?tabs=Java","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoftgraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-26T21:59:24.000Z","updated_at":"2025-07-04T12:35:12.000Z","dependencies_parsed_at":"2023-10-16T20:29:35.615Z","dependency_job_id":"63ab0fc0-68bb-40c9-9418-a0675024552e","html_url":"https://github.com/microsoftgraph/msgraph-beta-sdk-java","commit_stats":null,"previous_names":[],"tags_count":162,"template":false,"template_full_name":null,"purl":"pkg:github/microsoftgraph/msgraph-beta-sdk-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-beta-sdk-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-beta-sdk-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-beta-sdk-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-beta-sdk-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoftgraph","download_url":"https://codeload.github.com/microsoftgraph/msgraph-beta-sdk-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoftgraph%2Fmsgraph-beta-sdk-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267362850,"owners_count":24075211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devxeng","java","microsoft-graph","sdk"],"created_at":"2025-06-09T11:11:46.711Z","updated_at":"2025-07-27T13:12:47.525Z","avatar_url":"https://github.com/microsoftgraph.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Graph SDK for Java\n## Version 6.1.0 now Generally Available!\n\n[![Download](https://img.shields.io/maven-central/v/com.microsoft.graph/microsoft-graph.svg)](https://search.maven.org/artifact/com.microsoft.graph/microsoft-graph-beta)\n\nGet started with the Microsoft Graph SDK for Java by integrating the [Microsoft Graph API](https://developer.microsoft.com/en-us/graph/get-started/java) into your Java application!\n\n\u003e **Note:** this SDK allows you to build applications using the [beta](https://docs.microsoft.com/en-us/graph/use-the-api#version) of Microsoft Graph. If you want to use the production supported Microsoft Graph APIs under v1.0, use our [v1.0 SDK](https://github.com/microsoftgraph/msgraph-sdk-java) instead.\n\n## 1. Installation\n\n### 1.1 Install via Gradle\n\nAdd the repository and a compile dependency for `microsoft-graph-beta` to your project's `build.gradle`:\n\n\n```Groovy\nrepositories {\n  mavenCentral()\n}\n\ndependencies {\n    // Include the sdk as a dependency\n    // x-release-please-start-version\n    implementation 'com.microsoft.graph:microsoft-graph-beta:6.48.0'\n    // x-release-please-end\n    // This dependency is only needed if you are using the TokenCrendentialAuthProvider\n    implementation 'com.azure:azure-identity:1.11.0'\n}\n```\n\n### 1.2 Install via Maven\n\nAdd the dependency in `dependencies` in pom.xml\n\n```xml\n\u003cdependency\u003e\n  \u003c!-- Include the sdk as a dependency --\u003e\n  \u003cgroupId\u003ecom.microsoft.graph\u003c/groupId\u003e\n  \u003cartifactId\u003emicrosoft-graph-beta\u003c/artifactId\u003e\n  \u003c!--x-release-please-start-version--\u003e\n  \u003cversion\u003e6.48.0\u003c/version\u003e\n  \u003c!--x-release-please-end--\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n  \u003c!-- This dependency is only needed if you are using the TokenCrendentialAuthProvider --\u003e\n  \u003cgroupId\u003ecom.azure\u003c/groupId\u003e\n  \u003cartifactId\u003eazure-identity\u003c/artifactId\u003e\n  \u003cversion\u003e1.11.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\u003e**Note:** if the `repositories` node doesn't exist, add it in `project`. For more information about the maven repositories configuration, [refer to this documentation](https://maven.apache.org/guides/mini/guide-multiple-repositories.html).\n\n### 1.3 Enable ProGuard (Android)\n\nThe nature of the Graph API is such that the SDK needs quite a large set of classes to describe its functionality. You need to ensure that [ProGuard](https://developer.android.com/studio/build/shrink-code.html) is enabled on your project. Otherwise, you will incur long build times for functionality that is not necessarily relevant to your particular application. If you are still hitting the 64K method limit, you can also enable [multidexing](https://developer.android.com/studio/build/multidex.html). Checkout the [recommended rules](./docs/proguard-rules.txt).\n\n## 2. Getting started\n\n### 2.1 Register your application\n\nRegister your application by following the steps at [Register your app with the Microsoft Identity Platform](https://docs.microsoft.com/graph/auth-register-app-v2).\n\n### 2.2 Create an IAuthenticationProvider object\n\nAn instance of the **GraphServiceClient** class handles building requests, sending them to the Microsoft Graph API, and processing the responses. To create a new instance of this class, you need to provide an instance of `AuthenticationProvider`, which can authenticate requests to Microsoft Graph.\n\nFor an example of how to get an authentication provider, see [choose a Microsoft Graph authentication provider](https://docs.microsoft.com/graph/sdks/choose-authentication-providers?tabs=Java).\n\n### 2.3 Get a GraphServiceClient object\n\nAfter you have set the correct application ID and URL, you must get a **GraphServiceClient** object to make requests against the service. The SDK stores the account information for you, but when a user signs in for the first time, it invokes the UI to get the user's account information.\n\n```java\nfinal AzureIdentityAuthenticationProvider authenticationProvider =\n        new AzureIdentityAuthenticationProvider(credential, null, scopes);\nGraphServiceClient graphClient = new GraphServiceClient(authenticationProvider)\n\n//Alternatively\nGraphServiceClient graphClient = new GraphServiceClient(credential, scopes);\n```\n\n## 3. Make requests against the service\n\nAfter you have a GraphServiceClient that is authenticated, you can begin making calls against the service. The requests against the service look like our [REST API](https://developer.microsoft.com/en-us/graph/docs/concepts/overview).\n\n### 3.1 Get the user info\n\nTo retrieve the user's information:\n\n```java\nUser me = graphClient.me().get();\nSystem.out.printf(\"Hello %s, your ID is %s%n\", me.getDisplayName(), me.getId());\n```\n## 4. Documentation\n\nFor more detailed documentation, see:\n\n* [Overview](https://docs.microsoft.com/graph/overview)\n* [Collections](https://docs.microsoft.com/graph/sdks/paging)\n* [Making requests](https://docs.microsoft.com/graph/sdks/create-requests)\n* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-java/issues)\n* [Contributions](https://github.com/microsoftgraph/msgraph-beta-sdk-java/blob/master/CONTRIBUTING.md)\n\n## 5. Issues\n\nFor known issues, see [issues](https://github.com/MicrosoftGraph/msgraph-beta-sdk-java/issues).\n\n## 6. Contributions\n\nThe Microsoft Graph SDK is open for contribution. To contribute to this project, see [Contributing](https://github.com/microsoftgraph/msgraph-beta-sdk-java/blob/master/CONTRIBUTING.md).\n\n## 7. Supported Java versions\n\nThe Microsoft Graph beta SDK for Java library is supported at runtime for Java 8+ and [Android API revision 26](http://source.android.com/source/build-numbers.html) and greater.\n\n\n## 8. License\n\nCopyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MIT license](LICENSE).\n\n## 9. Third-party notices\n\n[Third-party notices](THIRD%20PARTY%20NOTICES)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-beta-sdk-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-beta-sdk-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoftgraph%2Fmsgraph-beta-sdk-java/lists"}